Class MatchPhraseQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.MatchPhraseQuery
- 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<MatchPhraseQuery>Json deserializer forMatchPhraseQuery -
Method Summary
Modifier and TypeMethodDescriptionQuery variant kind.final Stringanalyzer()Analyzer used to convert the text in the query value into tokens.final Stringfield()Required - The target fieldstatic MatchPhraseQueryfinal Stringquery()Required - Query terms that are analyzed and turned into a phrase query.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integerslop()Maximum number of positions allowed between matching tokens.final ZeroTermsQueryIndicates whether no documents are returned if theanalyzerremoves all tokens, such as when using astopfilter.Methods 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 forMatchPhraseQuery
-
-
Method Details
-
of
public static MatchPhraseQuery of(Function<MatchPhraseQuery.Builder, ObjectBuilder<MatchPhraseQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
field
Required - The target field -
analyzer
Analyzer used to convert the text in the query value into tokens.API name:
analyzer -
query
Required - Query terms that are analyzed and turned into a phrase query.API name:
query -
slop
Maximum number of positions allowed between matching tokens.API name:
slop -
zeroTermsQuery
Indicates whether no documents are returned if theanalyzerremoves all tokens, such as when using astopfilter.API name:
zero_terms_query -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupMatchPhraseQueryDeserializer
protected static void setupMatchPhraseQueryDeserializer(ObjectDeserializer<MatchPhraseQuery.Builder> op)
-