org.elasticsearch.index.query
Class HasChildQueryBuilder
java.lang.Object
org.elasticsearch.index.query.BaseQueryBuilder
org.elasticsearch.index.query.HasChildQueryBuilder
- All Implemented Interfaces:
- ToXContent, BoostableQueryBuilder<HasChildQueryBuilder>, QueryBuilder
public class HasChildQueryBuilder
- extends BaseQueryBuilder
- implements BoostableQueryBuilder<HasChildQueryBuilder>
HasChildQueryBuilder
public HasChildQueryBuilder(String type,
QueryBuilder queryBuilder)
scope
public HasChildQueryBuilder scope(String scope)
- The scope of the query, which can later be used, for example, to run facets against the child docs that
matches the query.
boost
public HasChildQueryBuilder boost(float boost)
- Sets the boost for this query. Documents matching this query will (in addition to the normal
weightings) have their score multiplied by the boost provided.
- Specified by:
boost
in interface BoostableQueryBuilder<HasChildQueryBuilder>
doXContent
protected void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Specified by:
doXContent
in class BaseQueryBuilder
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.