solr express
Search…
Local parameter

Feature

Create a local parameter

How to

Option 1

Using query (see how create queries in tutorial)
1
DocumentCollection<TechProductDocument> documentCollection; // from DI
2
3
var rersult = documentCollection
4
.Select()
5
.LocalParameter("MyLocalParameter", q => q.Categories, query => query.EqualsTo("some category"))
6
.Execute();
Copied!

Option 2

Using plain value
1
DocumentCollection<TechProductDocument> documentCollection; // from DI
2
3
var rersult = documentCollection
4
.Select()
5
.LocalParameter("MyLocalParameter", "some value")
6
.Execute();
Copied!
Last modified 2yr ago