Create a CustomScoreQuery over input subQuery and a {@link ValueSourceQuery}.
Namespace: Lucene.Net.Search.FunctionAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
Parameters
- subQuery
- Type: Lucene.Net.Search..::..Query
the sub query whose score is being customed. Must not be null.
- valSrcQuery
- Type: Lucene.Net.Search.Function..::..ValueSourceQuery
a value source query whose scores are used in the custom score
computation. For most simple/convineient use case this would be a
{@link Lucene.Net.Search.Function.FieldScoreQuery FieldScoreQuery}.
This parameter is optional - it can be null or even an empty array.
See Also