Class WeightedTokensQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.WeightedTokensQuery
- All Implemented Interfaces:
QueryVariant
,JsonpSerializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<WeightedTokensQuery>
Json deserializer forWeightedTokensQuery
-
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final String
field()
Required - The target fieldstatic WeightedTokensQuery
final TokenPruningConfig
Token pruning configurationsprotected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
tokens()
Required - The tokens representing this queryMethods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forWeightedTokensQuery
-
-
Method Details
-
of
public static WeightedTokensQuery of(Function<WeightedTokensQuery.Builder, ObjectBuilder<WeightedTokensQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
field
Required - The target field -
tokens
Required - The tokens representing this queryAPI name:
tokens
-
pruningConfig
Token pruning configurationsAPI name:
pruning_config
-
serializeInternal
- Overrides:
serializeInternal
in classQueryBase
-
setupWeightedTokensQueryDeserializer
protected static void setupWeightedTokensQueryDeserializer(ObjectDeserializer<WeightedTokensQuery.Builder> op)
-