Class BoostingQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.BoostingQuery
- All Implemented Interfaces:
QueryVariant,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<BoostingQuery>Json deserializer forBoostingQuery -
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final Querynegative()Required - Query used to decrease the relevance score of matching documents.final doubleRequired - Floating point number between 0 and 1.0 used to decrease the relevance scores of documents matching thenegativequery.static BoostingQueryfinal Querypositive()Required - Any returned documents must match this query.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forBoostingQuery
-
-
Method Details
-
of
-
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
negativeBoost
public final double 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 -
positive
Required - Any returned documents must match this query.API name:
positive -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupBoostingQueryDeserializer
-