public class TopChildrenQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder<TopChildrenQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
TopChildrenQueryBuilder(String type,
QueryBuilder queryBuilder) |
Modifier and Type | Method and Description |
---|---|
TopChildrenQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
TopChildrenQueryBuilder |
factor(int factor)
Controls the multiplication factor of the initial hits required from the child query over the main query request.
|
TopChildrenQueryBuilder |
incrementalFactor(int incrementalFactor)
Sets the incremental factor when the query needs to be re-run in order to fetch more results.
|
TopChildrenQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
TopChildrenQueryBuilder |
score(String score)
How to compute the score.
|
buildAsBytes, buildAsBytes, toString, toXContent
public TopChildrenQueryBuilder(String type, QueryBuilder queryBuilder)
public TopChildrenQueryBuilder score(String score)
public TopChildrenQueryBuilder factor(int factor)
public TopChildrenQueryBuilder incrementalFactor(int incrementalFactor)
public TopChildrenQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<TopChildrenQueryBuilder>
public TopChildrenQueryBuilder queryName(String queryName)
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseQueryBuilder
IOException
Copyright © 2009–2015. All rights reserved.