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
,UnionVariant
@JsonpDeserializable public final class BoostingQuery extends QueryBase implements QueryVariant
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BoostingQuery.Builder
Builder 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>
_DESERIALIZER
Json deserializer forBoostingQuery
-
Constructor Summary
Constructors Constructor Description BoostingQuery(BoostingQuery.Builder builder)
BoostingQuery(java.util.function.Function<BoostingQuery.Builder,BoostingQuery.Builder> fn)
-
Method Summary
Modifier and Type Method Description java.lang.String
_variantType()
Query
variant typeQuery
negative()
Required - API name:negative
double
negativeBoost()
Required - API name:negative_boost
Query
positive()
Required - API name:positive
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupBoostingQueryDeserializer(DelegatingDeserializer<BoostingQuery.Builder> op)
Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forBoostingQuery
-
-
Constructor Details
-
BoostingQuery
-
BoostingQuery
-
-
Method Details
-
_variantType
public java.lang.String _variantType()Query
variant type- Specified by:
_variantType
in interfaceUnionVariant
-
negativeBoost
public double negativeBoost()Required - API name:negative_boost
-
negative
Required - API name:negative
-
positive
Required - API name:positive
-
serializeInternal
- Overrides:
serializeInternal
in classQueryBase
-
setupBoostingQueryDeserializer
protected static void setupBoostingQueryDeserializer(DelegatingDeserializer<BoostingQuery.Builder> op)
-