Constructor CustomScoreQuery
CustomScoreQuery(Query)
Create a CustomScoreQuery over input subQuery
.
Declaration
public CustomScoreQuery(Query subQuery)
Parameters
Type | Name | Description |
---|---|---|
Query | subQuery | the sub query whose scored is being customized. Must not be |
CustomScoreQuery(Query, FunctionQuery)
Create a CustomScoreQuery over input subQuery
and a FunctionQuery.
Declaration
public CustomScoreQuery(Query subQuery, FunctionQuery scoringQuery)
Parameters
Type | Name | Description |
---|---|---|
Query | subQuery | the sub query whose score is being customized. Must not be |
FunctionQuery | scoringQuery | a value source query whose scores are used in the custom score computation. This parameter is optional - it can be null. |
CustomScoreQuery(Query, FunctionQuery[])
Create a CustomScoreQuery over input subQuery
and a FunctionQuery.
Declaration
public CustomScoreQuery(Query subQuery, params FunctionQuery[] scoringQueries)
Parameters
Type | Name | Description |
---|---|---|
Query | subQuery | the sub query whose score is being customized. Must not be |
FunctionQuery[] | scoringQueries | value source queries whose scores are used in the custom score computation. This parameter is optional - it can be null or even an empty array. |