public class BoostingQueryBuilder extends BaseQueryBuilder implements BoostableQueryBuilder<BoostingQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
BoostingQueryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
BoostingQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
BoostingQueryBuilder |
negative(QueryBuilder negativeQuery) |
BoostingQueryBuilder |
negativeBoost(float negativeBoost) |
BoostingQueryBuilder |
positive(QueryBuilder positiveQuery) |
buildAsBytes, buildAsBytes, toString, toXContentpublic BoostingQueryBuilder positive(QueryBuilder positiveQuery)
public BoostingQueryBuilder negative(QueryBuilder negativeQuery)
public BoostingQueryBuilder negativeBoost(float negativeBoost)
public BoostingQueryBuilder boost(float boost)
BoostableQueryBuilderboost in interface BoostableQueryBuilder<BoostingQueryBuilder>protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent in class BaseQueryBuilderIOExceptionCopyright © 2009–2016. All rights reserved.