Class MatchPhrasePrefixQuery
java.lang.Object
org.opensearch.client.opensearch._types.query_dsl.QueryBase
org.opensearch.client.opensearch._types.query_dsl.MatchPhrasePrefixQuery
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,QueryVariant,ToCopyableBuilder<MatchPhrasePrefixQuery.Builder,MatchPhrasePrefixQuery>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class MatchPhrasePrefixQuery
extends QueryBase
implements QueryVariant, ToCopyableBuilder<MatchPhrasePrefixQuery.Builder,MatchPhrasePrefixQuery>
-
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<MatchPhrasePrefixQuery> Json deserializer forMatchPhrasePrefixQuery -
Method Summary
Modifier and TypeMethodDescriptionQueryvariant kind.final Stringanalyzer()Analyzer used to convert text in the query value into tokens.builder()booleanfinal Stringfield()Required - The target fieldinthashCode()final IntegerMaximum number of terms to which the last provided term of the query value will expand.static MatchPhrasePrefixQueryfinal Stringquery()Required - Text you wish to find in the provided field.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integerslop()Maximum number of positions allowed between matching tokens.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final ZeroTermsQueryAPI name:zero_terms_queryMethods 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 forMatchPhrasePrefixQuery
-
-
Method Details
-
of
public static MatchPhrasePrefixQuery of(Function<MatchPhrasePrefixQuery.Builder, ObjectBuilder<MatchPhrasePrefixQuery>> fn) -
_queryKind
Queryvariant kind.- Specified by:
_queryKindin interfaceQueryVariant
-
analyzer
Analyzer used to convert text in the query value into tokens.API name:
analyzer -
field
Required - The target field -
maxExpansions
Maximum number of terms to which the last provided term of the query value will expand.API name:
max_expansions -
query
Required - Text you wish to find in the provided field.API name:
query -
slop
Maximum number of positions allowed between matching tokens.API name:
slop -
zeroTermsQuery
API name:zero_terms_query -
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<MatchPhrasePrefixQuery.Builder,MatchPhrasePrefixQuery> - Returns:
- a new builder instance.
-
builder
-
setupMatchPhrasePrefixQueryDeserializer
protected static void setupMatchPhrasePrefixQueryDeserializer(ObjectDeserializer<MatchPhrasePrefixQuery.Builder> op) -
hashCode
public int hashCode() -
equals
-