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[] valSrcQueries
)
Visual Basic
Public Sub New ( _
	subQuery As Query, _
	valSrcQueries As ValueSourceQuery() _
)
Visual C++
public:
CustomScoreQuery(
	Query^ subQuery, 
	array<ValueSourceQuery^>^ valSrcQueries
)

Parameters

subQuery
Type: Lucene.Net.Search..::..Query
the sub query whose score is being customized. Must not be null.
valSrcQueries
Type: array<Lucene.Net.Search.Function..::..ValueSourceQuery>[]()[][]
value source queries whose scores are used in the custom score computation. For most simple/convenient use case these would be {@link Lucene.Net.Search.Function.FieldScoreQuery FieldScoreQueries}. This parameter is optional - it can be null or even an empty array.

See Also