public class HasParentQueryBuilder extends QueryBuilder implements BoostableQueryBuilder<HasParentQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
HasParentQueryBuilder(String parentType,
QueryBuilder parentQuery) |
| Modifier and Type | Method and Description |
|---|---|
HasParentQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
HasParentQueryBuilder |
innerHit(QueryInnerHitBuilder innerHit)
Sets inner hit definition in the scope of this query and reusing the defined type and query.
|
HasParentQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
HasParentQueryBuilder |
scoreMode(String scoreMode)
Defines how the parent score is mapped into the child documents.
|
HasParentQueryBuilder |
scoreType(String scoreMode)
Deprecated.
|
toXContentbuildAsBytes, buildAsBytes, toStringpublic HasParentQueryBuilder(String parentType, QueryBuilder parentQuery)
parentType - The parent typeparentQuery - The query that will be matched with parent documentspublic HasParentQueryBuilder boost(float boost)
BoostableQueryBuilderboost in interface BoostableQueryBuilder<HasParentQueryBuilder>public HasParentQueryBuilder scoreMode(String scoreMode)
@Deprecated public HasParentQueryBuilder scoreType(String scoreMode)
public HasParentQueryBuilder queryName(String queryName)
public HasParentQueryBuilder innerHit(QueryInnerHitBuilder innerHit)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class QueryBuilderIOExceptionCopyright © 2009–2017. All rights reserved.