Package | Description |
---|---|
org.elasticsearch.index.query | |
org.elasticsearch.index.query.functionscore |
Modifier and Type | Method and Description |
---|---|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery()
A query that allows to define a custom scoring function.
|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery(QueryBuilder queryBuilder)
A query that allows to define a custom scoring function.
|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery(QueryBuilder queryBuilder,
ScoreFunctionBuilder function)
A query that allows to define a custom scoring function.
|
static FunctionScoreQueryBuilder |
QueryBuilders.functionScoreQuery(ScoreFunctionBuilder function)
A query that allows to define a custom scoring function.
|
Modifier and Type | Method and Description |
---|---|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.add(QueryBuilder filter,
ScoreFunctionBuilder scoreFunctionBuilder)
Adds a score function that will will execute the function scoreFunctionBuilder on all documents matching the filter.
|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.add(ScoreFunctionBuilder scoreFunctionBuilder)
Adds a score function that will will execute the function scoreFunctionBuilder on all documents.
|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.boost(float boost)
Sets the boost for this query.
|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.boostMode(CombineFunction combineFunction)
Score mode defines how the combined result of score functions will influence the final score together with the sub query score.
|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.boostMode(String boostMode)
Score mode defines how the combined result of score functions will influence the final score together with the sub query score.
|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.maxBoost(float maxBoost)
Tha maximum boost that will be applied by function score.
|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.scoreMode(String scoreMode)
Score mode defines how results of individual score functions will be aggregated.
|
FunctionScoreQueryBuilder |
FunctionScoreQueryBuilder.setMinScore(float minScore) |
Copyright © 2009–2016. All rights reserved.