public class NestedQueryBuilder extends QueryBuilder implements BoostableQueryBuilder<NestedQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
NestedQueryBuilder(String path,
QueryBuilder queryBuilder) |
Modifier and Type | Method and Description |
---|---|
NestedQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
NestedQueryBuilder |
innerHit(QueryInnerHitBuilder innerHit)
Sets inner hit definition in the scope of this nested query and reusing the defined path and query.
|
NestedQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
NestedQueryBuilder |
scoreMode(String scoreMode)
The score mode.
|
toXContent
buildAsBytes, buildAsBytes, toString
public NestedQueryBuilder(String path, QueryBuilder queryBuilder)
public NestedQueryBuilder scoreMode(String scoreMode)
public NestedQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<NestedQueryBuilder>
public NestedQueryBuilder queryName(String queryName)
public NestedQueryBuilder innerHit(QueryInnerHitBuilder innerHit)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class QueryBuilder
IOException
Copyright © 2009–2016. All rights reserved.