Class MatchQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.MatchQuery
- All Implemented Interfaces:
QueryVariant,ApiKeyQueryVariant,JsonpSerializable
@JsonpDeserializable
public class MatchQuery
extends QueryBase
implements ApiKeyQueryVariant, QueryVariant
- 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<MatchQuery>Json deserializer forMatchQuery -
Method Summary
Modifier and TypeMethodDescriptionApiKeyQuery variant kind.Query variant kind.final Stringanalyzer()Analyzer used to convert the text in the query value into tokens.final BooleanIftrue, match phrase queries are automatically created for multi-term synonyms.final DoubleDeprecated.7.3.0final Stringfield()Required - The target fieldfinal StringMaximum edit distance allowed for matching.final StringMethod used to rewrite the query.final BooleanIftrue, edits for fuzzy matching include transpositions of two adjacent characters (for example,abtoba).final Booleanlenient()Iftrue, format-based errors, such as providing a text query value for a numeric field, are ignored.final IntegerMaximum number of terms to which the query will expand.final StringMinimum number of clauses that must match for a document to be returned.static MatchQueryfinal Operatoroperator()Boolean logic used to interpret text in the query value.final IntegerNumber of beginning characters left unchanged for fuzzy matching.final FieldValuequery()Required - Text, number, boolean value or date you wish to find in the provided field.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal 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.security.query_api_keys.ApiKeyQueryVariant
_toApiKeyQueryMethods inherited from interface co.elastic.clients.elasticsearch._types.query_dsl.QueryVariant
_toQuery
-
Field Details
-
_DESERIALIZER
Json deserializer forMatchQuery
-
-
Method Details
-
of
-
_apiKeyQueryKind
ApiKeyQuery variant kind.- Specified by:
_apiKeyQueryKindin interfaceApiKeyQueryVariant
-
_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 -
autoGenerateSynonymsPhraseQuery
Iftrue, match phrase queries are automatically created for multi-term synonyms.API name:
auto_generate_synonyms_phrase_query -
cutoffFrequency
Deprecated.7.3.0API name:cutoff_frequency -
fuzziness
Maximum edit distance allowed for matching.API name:
fuzziness -
fuzzyRewrite
Method used to rewrite the query.API name:
fuzzy_rewrite -
fuzzyTranspositions
Iftrue, edits for fuzzy matching include transpositions of two adjacent characters (for example,abtoba).API name:
fuzzy_transpositions -
lenient
Iftrue, format-based errors, such as providing a text query value for a numeric field, are ignored.API name:
lenient -
maxExpansions
Maximum number of terms to which the query will expand.API name:
max_expansions -
minimumShouldMatch
Minimum number of clauses that must match for a document to be returned.API name:
minimum_should_match -
operator
Boolean logic used to interpret text in the query value.API name:
operator -
prefixLength
Number of beginning characters left unchanged for fuzzy matching.API name:
prefix_length -
query
Required - Text, number, boolean value or date you wish to find in the provided field.API name:
query -
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
-
setupMatchQueryDeserializer
-