Class PrefixQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.PrefixQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<PrefixQuery.Builder,PrefixQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class PrefixQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<PrefixQuery.Builder,PrefixQuery>
-
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<PrefixQuery> Json deserializer forPrefixQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.static PrefixQuery.Builderbuilder()final BooleanAllows ASCII case insensitive matching of the value with the indexed field values when set totrue.booleanfinal Stringfield()Required - The target fieldinthashCode()static PrefixQueryfinal Stringrewrite()API name:rewriteprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringvalue()Required - Beginning characters of terms you wish to find in the provided field.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 forPrefixQuery
-
-
Method Details
-
of
-
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
caseInsensitive
Allows ASCII case insensitive matching of the value with the indexed field values when set totrue. Default isfalsewhich means the case sensitivity of matching depends on the underlying field's mapping.API name:
case_insensitive -
field
Required - The target field -
rewrite
API name:rewrite -
value
Required - Beginning characters of terms you wish to find in the provided field.API name:
value -
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<PrefixQuery.Builder,PrefixQuery> - Returns:
- a new builder instance.
-
builder
-
setupPrefixQueryDeserializer
-
hashCode
public int hashCode() -
equals
-