|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.query.BaseQueryBuilder org.elasticsearch.index.query.CustomScoreQueryBuilder
public class CustomScoreQueryBuilder
A query that uses a script to compute the score.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Constructor Summary | |
---|---|
CustomScoreQueryBuilder(QueryBuilder queryBuilder)
A query that simply applies the boost factor to another query (multiply it). |
Method Summary | |
---|---|
CustomScoreQueryBuilder |
boost(float boost)
Sets the boost for this query. |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
|
CustomScoreQueryBuilder |
lang(String lang)
Sets the language of the script. |
CustomScoreQueryBuilder |
param(String key,
Object value)
Additional parameters that can be provided to the script. |
CustomScoreQueryBuilder |
params(Map<String,Object> params)
Additional parameters that can be provided to the script. |
CustomScoreQueryBuilder |
script(String script)
Sets the boost factor for this query. |
Methods inherited from class org.elasticsearch.index.query.BaseQueryBuilder |
---|
buildAsBytes, buildAsBytes, toString, toXContent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CustomScoreQueryBuilder(QueryBuilder queryBuilder)
queryBuilder
- The query to apply the boost factor to.Method Detail |
---|
public CustomScoreQueryBuilder script(String script)
public CustomScoreQueryBuilder lang(String lang)
public CustomScoreQueryBuilder params(Map<String,Object> params)
public CustomScoreQueryBuilder param(String key, Object value)
public CustomScoreQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<CustomScoreQueryBuilder>
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseQueryBuilder
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |