solr express
1.0.0
Search…
⌃K

Local parameter

Feature

Create a local parameter

How to

Option 1

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

Option 2

Using plain value
DocumentCollection<TechProductDocument> documentCollection; // from DI
var rersult = documentCollection
.Select()
.LocalParameter("MyLocalParameter", "some value")
.Execute();