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
@JsonpDeserializable public class MatchPhraseQuery extends QueryBase implements QueryVariant
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatchPhraseQuery.BuilderBuilder forMatchPhraseQuery.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<MatchPhraseQuery>_DESERIALIZERJson deserializer forMatchPhraseQuery -
Method Summary
Modifier and Type Method Description Query.Kind_queryKind()Query variant kind.java.lang.Stringanalyzer()API name:analyzerjava.lang.Stringfield()Required - The target fieldstatic MatchPhraseQueryof(java.util.function.Function<MatchPhraseQuery.Builder,ObjectBuilder<MatchPhraseQuery>> fn)java.lang.Stringquery()Required - API name:queryprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupMatchPhraseQueryDeserializer(ObjectDeserializer<MatchPhraseQuery.Builder> op)java.lang.Integerslop()API name:slopZeroTermsQueryzeroTermsQuery()API name:zero_terms_queryMethods 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 forMatchPhraseQuery
-
-
Method Details
-
of
public static MatchPhraseQuery of(java.util.function.Function<MatchPhraseQuery.Builder,ObjectBuilder<MatchPhraseQuery>> fn) -
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
field
public final java.lang.String field()Required - The target field -
analyzer
@Nullable public final java.lang.String analyzer()API name:analyzer -
query
public final java.lang.String query()Required - API name:query -
slop
@Nullable public final java.lang.Integer slop()API name:slop -
zeroTermsQuery
API name:zero_terms_query -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupMatchPhraseQueryDeserializer
protected static void setupMatchPhraseQueryDeserializer(ObjectDeserializer<MatchPhraseQuery.Builder> op)
-