Class SimpleQueryStringQuery
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase
co.elastic.clients.elasticsearch._types.query_dsl.SimpleQueryStringQuery
- All Implemented Interfaces:
QueryVariant,ApiKeyQueryVariant,JsonpSerializable
@JsonpDeserializable
public class SimpleQueryStringQuery
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<SimpleQueryStringQuery>Json deserializer forSimpleQueryStringQuery -
Method Summary
Modifier and TypeMethodDescriptionApiKeyQuery variant kind.Query variant kind.final Stringanalyzer()Analyzer used to convert text in the query string into tokens.final BooleanIftrue, the query attempts to analyze wildcard terms in the query string.final BooleanIftrue, the parser creates a match_phrase query for each multi-position token.final OperatorDefault boolean logic used to interpret text in the query string if no operators are specified.fields()Array of fields you wish to search.final List<SimpleQueryStringFlag>flags()List of enabled operators for the simple query string syntax.final IntegerMaximum number of terms to which the query expands for fuzzy matching.final IntegerNumber of beginning characters left unchanged for fuzzy matching.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 value for a numeric field, are ignored.final StringMinimum number of clauses that must match for a document to be returned.static SimpleQueryStringQueryfinal Stringquery()Required - Query string in the simple query string syntax you wish to parse and use for search.final StringSuffix appended to quoted text in the query string.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods 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 forSimpleQueryStringQuery
-
-
Method Details
-
of
public static SimpleQueryStringQuery of(Function<SimpleQueryStringQuery.Builder, ObjectBuilder<SimpleQueryStringQuery>> fn) -
_apiKeyQueryKind
ApiKeyQuery variant kind.- Specified by:
_apiKeyQueryKindin interfaceApiKeyQueryVariant
-
_queryKind
Query variant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
analyzer
Analyzer used to convert text in the query string into tokens.API name:
analyzer -
analyzeWildcard
Iftrue, the query attempts to analyze wildcard terms in the query string.API name:
analyze_wildcard -
autoGenerateSynonymsPhraseQuery
Iftrue, the parser creates a match_phrase query for each multi-position token.API name:
auto_generate_synonyms_phrase_query -
defaultOperator
Default boolean logic used to interpret text in the query string if no operators are specified.API name:
default_operator -
fields
Array of fields you wish to search. Accepts wildcard expressions. You also can boost relevance scores for matches to particular fields using a caret (^) notation. Defaults to theindex.query.default_field indexsetting, which has a default value of*.API name:
fields -
flags
List of enabled operators for the simple query string syntax.API name:
flags -
fuzzyMaxExpansions
Maximum number of terms to which the query expands for fuzzy matching.API name:
fuzzy_max_expansions -
fuzzyPrefixLength
Number of beginning characters left unchanged for fuzzy matching.API name:
fuzzy_prefix_length -
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 value for a numeric field, are ignored.API name:
lenient -
minimumShouldMatch
Minimum number of clauses that must match for a document to be returned.API name:
minimum_should_match -
query
Required - Query string in the simple query string syntax you wish to parse and use for search.API name:
query -
quoteFieldSuffix
Suffix appended to quoted text in the query string.API name:
quote_field_suffix -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
setupSimpleQueryStringQueryDeserializer
protected static void setupSimpleQueryStringQueryDeserializer(ObjectDeserializer<SimpleQueryStringQuery.Builder> op)
-