Class BoostingQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<BoostingQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.BoostingQuery.Builder
- All Implemented Interfaces:
WithJson<BoostingQuery.Builder>,ObjectBuilder<BoostingQuery>
- Enclosing class:
- BoostingQuery
public static class BoostingQuery.Builder
extends QueryBase.AbstractBuilder<BoostingQuery.Builder>
implements ObjectBuilder<BoostingQuery>
Builder for
BoostingQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aBoostingQuery.final BoostingQuery.BuilderRequired - Query used to decrease the relevance score of matching documents.final BoostingQuery.Buildernegative(QueryVariant value) Required - Query used to decrease the relevance score of matching documents.final BoostingQuery.BuilderRequired - Query used to decrease the relevance score of matching documents.final BoostingQuery.BuildernegativeBoost(double value) Required - Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching thenegativequery.final BoostingQuery.BuilderRequired - Any returned documents must match this query.final BoostingQuery.Builderpositive(QueryVariant value) Required - Any returned documents must match this query.final BoostingQuery.BuilderRequired - Any returned documents must match this query.protected BoostingQuery.Builderself()Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
negativeBoost
Required - Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching thenegativequery.API name:
negative_boost -
negative
Required - Query used to decrease the relevance score of matching documents.API name:
negative -
negative
Required - Query used to decrease the relevance score of matching documents.API name:
negative -
negative
Required - Query used to decrease the relevance score of matching documents.API name:
negative -
positive
Required - Any returned documents must match this query.API name:
positive -
positive
Required - Any returned documents must match this query.API name:
positive -
positive
Required - Any returned documents must match this query.API name:
positive -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<BoostingQuery.Builder>
-
build
Builds aBoostingQuery.- Specified by:
buildin interfaceObjectBuilder<BoostingQuery>- Throws:
NullPointerException- if some of the required fields are null.
-