Apache Lucene.Net 2.4.0 Class Library API

CustomScoreQuery Constructor (Query, ValueSourceQuery)

Create a CustomScoreQuery over input subQuery and a {@link ValueSourceQuery}.

public CustomScoreQuery(
   Query subQuery,
   ValueSourceQuery valSrcQuery
);

Parameters

subQuery
the sub query whose score is being customed. Must not be null.
valSrcQuery
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.

See Also

CustomScoreQuery Class | Lucene.Net.Search.Function Namespace | CustomScoreQuery Constructor Overload List