public class HasChildQueryBuilder extends QueryBuilder implements BoostableQueryBuilder<HasChildQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
HasChildQueryBuilder(String type,
QueryBuilder queryBuilder) |
Modifier and Type | Method and Description |
---|---|
HasChildQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
HasChildQueryBuilder |
innerHit(QueryInnerHitBuilder innerHit)
Sets inner hit definition in the scope of this query and reusing the defined type and query.
|
HasChildQueryBuilder |
maxChildren(int maxChildren)
Defines the maximum number of children that are required to match for the parent to be considered a match.
|
HasChildQueryBuilder |
minChildren(int minChildren)
Defines the minimum number of children that are required to match for the parent to be considered a match.
|
HasChildQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
HasChildQueryBuilder |
scoreMode(String scoreMode)
Defines how the scores from the matching child documents are mapped into the parent document.
|
HasChildQueryBuilder |
scoreType(String scoreMode)
Deprecated.
|
HasChildQueryBuilder |
setShortCircuitCutoff(int shortCircuitCutoff)
Configures at what cut off point only to evaluate parent documents that contain the matching parent id terms
instead of evaluating all parent docs.
|
toXContent
buildAsBytes, buildAsBytes, toString
public HasChildQueryBuilder(String type, QueryBuilder queryBuilder)
public HasChildQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<HasChildQueryBuilder>
public HasChildQueryBuilder scoreMode(String scoreMode)
@Deprecated public HasChildQueryBuilder scoreType(String scoreMode)
public HasChildQueryBuilder minChildren(int minChildren)
public HasChildQueryBuilder maxChildren(int maxChildren)
public HasChildQueryBuilder setShortCircuitCutoff(int shortCircuitCutoff)
public HasChildQueryBuilder queryName(String queryName)
public HasChildQueryBuilder innerHit(QueryInnerHitBuilder innerHit)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class QueryBuilder
IOException
Copyright © 2009–2016. All rights reserved.