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

Namespace: Lucene.Net.Search.Function
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public CustomScoreQuery(
	Query subQuery,
	ValueSourceQuery valSrcQuery
)
Visual Basic
Public Sub New ( _
	subQuery As Query, _
	valSrcQuery As ValueSourceQuery _
)
Visual C++
public:
CustomScoreQuery(
	Query^ subQuery, 
	ValueSourceQuery^ valSrcQuery
)

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