|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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(java.lang.String lang)
Sets the language of the script. |
CustomScoreQueryBuilder |
param(java.lang.String key,
java.lang.Object value)
Additional parameters that can be provided to the script. |
CustomScoreQueryBuilder |
params(java.util.Map<java.lang.String,java.lang.Object> params)
Additional parameters that can be provided to the script. |
CustomScoreQueryBuilder |
script(java.lang.String script)
Sets the boost factor for this query. |
| Methods inherited from class org.elasticsearch.index.query.BaseQueryBuilder |
|---|
buildAsBytes, buildAsBytes, buildAsUnsafeBytes, buildAsUnsafeBytes, 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(java.lang.String script)
public CustomScoreQueryBuilder lang(java.lang.String lang)
public CustomScoreQueryBuilder params(java.util.Map<java.lang.String,java.lang.Object> params)
public CustomScoreQueryBuilder param(java.lang.String key,
java.lang.Object value)
public CustomScoreQueryBuilder boost(float boost)
protected void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
doXContent in class BaseQueryBuilderjava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||