Class SimpleQueryStringQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.SimpleQueryStringQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<SimpleQueryStringQuery.Builder,SimpleQueryStringQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SimpleQueryStringQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<SimpleQueryStringQuery.Builder,SimpleQueryStringQuery>
-
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<SimpleQueryStringQuery> Json deserializer forSimpleQueryStringQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant 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 amatch_phrasequery for each multi-position token.builder()final OperatorAPI name:default_operatorbooleanfields()Array of fields you wish to search.final SimpleQueryStringFlagsflags()API name:flagsfinal 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).inthashCode()final Booleanlenient()Iftrue, format-based errors, such as providing a text value for a numeric field, are ignored.final StringAPI name:minimum_should_matchstatic 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 voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods 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 forSimpleQueryStringQuery
-
-
Method Details
-
of
public static SimpleQueryStringQuery of(Function<SimpleQueryStringQuery.Builder, ObjectBuilder<SimpleQueryStringQuery>> fn) -
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
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, the parser creates amatch_phrasequery for each multi-position token.API name:
auto_generate_synonyms_phrase_query -
defaultOperator
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
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
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
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SimpleQueryStringQuery.Builder,SimpleQueryStringQuery> - Returns:
- a new builder instance.
-
builder
-
setupSimpleQueryStringQueryDeserializer
protected static void setupSimpleQueryStringQueryDeserializer(ObjectDeserializer<SimpleQueryStringQuery.Builder> op) -
hashCode
public int hashCode() -
equals
-