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
@JsonpDeserializable public class BoostingQuery extends QueryBase implements QueryVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBoostingQuery.BuilderBuilder forBoostingQuery.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<BoostingQuery>_DESERIALIZERJson deserializer forBoostingQuery -
Method Summary
Modifier and Type Method Description Query.Kind_queryKind()Query variant kind.Querynegative()Required - API name:negativedoublenegativeBoost()Required - API name:negative_booststatic BoostingQueryof(java.util.function.Function<BoostingQuery.Builder,ObjectBuilder<BoostingQuery>> fn)Querypositive()Required - API name:positiveprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupBoostingQueryDeserializer(ObjectDeserializer<BoostingQuery.Builder> op)Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forBoostingQuery
-
-
Method Details
-
of
public static BoostingQuery of(java.util.function.Function<BoostingQuery.Builder,ObjectBuilder<BoostingQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
negativeBoost
public final double negativeBoost()Required - API name:negative_boost -
negative
Required - API name:negative -
positive
Required - API name:positive -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupBoostingQueryDeserializer
-