Class FuzzyQuery
- java.lang.Object
-
- org.opensearch.client.opensearch._types.query_dsl.QueryBase
-
- org.opensearch.client.opensearch._types.query_dsl.FuzzyQuery
-
- All Implemented Interfaces:
JsonpSerializable
,PlainJsonSerializable
,QueryVariant
@JsonpDeserializable public class FuzzyQuery extends QueryBase implements QueryVariant
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FuzzyQuery.Builder
Builder forFuzzyQuery
.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
QueryBase.AbstractBuilder<BuilderT extends QueryBase.AbstractBuilder<BuilderT>>
-
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<FuzzyQuery>
_DESERIALIZER
Json deserializer forFuzzyQuery
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Query.Kind
_queryKind()
Query variant kind.java.lang.String
field()
Required - The target fieldjava.lang.String
fuzziness()
API name:fuzziness
java.lang.Integer
maxExpansions()
API name:max_expansions
static FuzzyQuery
of(java.util.function.Function<FuzzyQuery.Builder,ObjectBuilder<FuzzyQuery>> fn)
java.lang.Integer
prefixLength()
API name:prefix_length
java.lang.String
rewrite()
API name:rewrite
protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupFuzzyQueryDeserializer(ObjectDeserializer<FuzzyQuery.Builder> op)
FuzzyQuery.Builder
toBuilder()
java.lang.Boolean
transpositions()
API name:transpositions
FieldValue
value()
Required - API name:value
-
Methods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase
boost, queryName, serialize, setupQueryBaseDeserializer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.opensearch._types.query_dsl.QueryVariant
_toQuery, toQuery
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<FuzzyQuery> _DESERIALIZER
Json deserializer forFuzzyQuery
-
-
Method Detail
-
of
public static FuzzyQuery of(java.util.function.Function<FuzzyQuery.Builder,ObjectBuilder<FuzzyQuery>> fn)
-
_queryKind
public Query.Kind _queryKind()
Query variant kind.- Specified by:
_queryKind
in interfaceQueryVariant
-
field
public final java.lang.String field()
Required - The target field
-
maxExpansions
@Nullable public final java.lang.Integer maxExpansions()
API name:max_expansions
-
prefixLength
@Nullable public final java.lang.Integer prefixLength()
API name:prefix_length
-
rewrite
@Nullable public final java.lang.String rewrite()
API name:rewrite
-
transpositions
@Nullable public final java.lang.Boolean transpositions()
API name:transpositions
-
fuzziness
@Nullable public final java.lang.String fuzziness()
API name:fuzziness
-
value
public final FieldValue value()
Required - API name:value
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
- Overrides:
serializeInternal
in classQueryBase
-
toBuilder
public FuzzyQuery.Builder toBuilder()
-
setupFuzzyQueryDeserializer
protected static void setupFuzzyQueryDeserializer(ObjectDeserializer<FuzzyQuery.Builder> op)
-
-