Class QueryStringQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.QueryStringQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<QueryStringQuery.Builder,QueryStringQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class QueryStringQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<QueryStringQuery.Builder,QueryStringQuery>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryStringQuery> Json deserializer forQueryStringQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.final BooleanIftrue, the wildcard characters*and?are allowed as the first character of the query string.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, match phrase queries are automatically created for multi-term synonyms.static QueryStringQuery.Builderbuilder()final StringAPI name:default_fieldfinal OperatorAPI name:default_operatorfinal BooleanIftrue, enable position increments in queries constructed from aquery_stringsearch.booleanfinal Booleanescape()API name:escapefields()Array of fields to search.final StringAPI name:fuzzinessfinal IntegerMaximum number of terms to which the query expands for fuzzy matching.final IntegerNumber of beginning characters left unchanged for fuzzy matching.final StringAPI name:fuzzy_rewritefinal BooleanIftrue, edits for fuzzy matching include transpositions of two adjacent characters (for example,abtoba).inthashCode()final Booleanlenient()Iftrue, format-based errors, such as providing a text value for a numeric field, are ignored.final IntegerMaximum number of automaton states required for the query.final StringAPI name:minimum_should_matchstatic QueryStringQueryfinal IntegerMaximum number of positions allowed between matching tokens for phrases.final Stringquery()Required - Query string you wish to parse and use for search.final StringAnalyzer used to convert quoted text in the query string into tokens.final StringSuffix appended to quoted text in the query string.final Stringrewrite()API name:rewriteprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal FloatHow to combine the queries generated from the individual search terms in the resultingdis_maxquery.final StringtimeZone()API name:time_zoneCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final TextQueryTypetype()API name:typeMethods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializerMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.QueryVariant
toQueryMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryStringQuery
-
-
Method Details
-
of
public static QueryStringQuery of(Function<QueryStringQuery.Builder, ObjectBuilder<QueryStringQuery>> fn) -
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
allowLeadingWildcard
Iftrue, the wildcard characters*and?are allowed as the first character of the query string.API name:
allow_leading_wildcard -
analyzeWildcard
Iftrue, the query attempts to analyze wildcard terms in the query string.API name:
analyze_wildcard -
analyzer
Analyzer used to convert text in the query string into tokens.API name:
analyzer -
autoGenerateSynonymsPhraseQuery
Iftrue, match phrase queries are automatically created for multi-term synonyms.API name:
auto_generate_synonyms_phrase_query -
defaultField
API name:default_field -
defaultOperator
API name:default_operator -
enablePositionIncrements
Iftrue, enable position increments in queries constructed from aquery_stringsearch.API name:
enable_position_increments -
escape
API name:escape -
fields
Array of fields to search. Supports wildcards (*).API name:
fields -
fuzziness
API name:fuzziness -
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 -
fuzzyRewrite
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 value for a numeric field, are ignored.API name:
lenient -
maxDeterminizedStates
Maximum number of automaton states required for the query.API name:
max_determinized_states -
minimumShouldMatch
API name:minimum_should_match -
phraseSlop
Maximum number of positions allowed between matching tokens for phrases.API name:
phrase_slop -
query
Required - Query string you wish to parse and use for search.API name:
query -
quoteAnalyzer
Analyzer used to convert quoted text in the query string into tokens. For quoted text, this parameter overrides the analyzer specified in theanalyzerparameter.API name:
quote_analyzer -
quoteFieldSuffix
Suffix appended to quoted text in the query string. You can use this suffix to use a different analysis method for exact matches.API name:
quote_field_suffix -
rewrite
API name:rewrite -
tieBreaker
How to combine the queries generated from the individual search terms in the resultingdis_maxquery.API name:
tie_breaker -
timeZone
API name:time_zone -
type
API name:type -
serializeInternal
- Overrides:
serializeInternalin classQueryBase
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<QueryStringQuery.Builder,QueryStringQuery> - Returns:
- a new builder instance.
-
builder
-
setupQueryStringQueryDeserializer
protected static void setupQueryStringQueryDeserializer(ObjectDeserializer<QueryStringQuery.Builder> op) -
hashCode
public int hashCode() -
equals
-