Class MatchPhrasePrefixQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<MatchPhrasePrefixQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.MatchPhrasePrefixQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<MatchPhrasePrefixQuery.Builder,,MatchPhrasePrefixQuery> MutableBuilder<MatchPhrasePrefixQuery.Builder,,MatchPhrasePrefixQuery> ObjectBuilder<MatchPhrasePrefixQuery>
- Enclosing class:
MatchPhrasePrefixQuery
public static class MatchPhrasePrefixQuery.Builder
extends QueryBase.AbstractBuilder<MatchPhrasePrefixQuery.Builder>
implements CopyableBuilder<MatchPhrasePrefixQuery.Builder,MatchPhrasePrefixQuery>
Builder for
MatchPhrasePrefixQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnalyzer used to convert text in the query value into tokens.build()Builds aMatchPhrasePrefixQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - The target fieldmaxExpansions(Integer value) Maximum number of terms to which the last provided term of the query value will expand.Required - Text you wish to find in the provided field.protected MatchPhrasePrefixQuery.Builderself()Maximum number of positions allowed between matching tokens.zeroTermsQuery(ZeroTermsQuery value) API name:zero_terms_queryMethods inherited from class org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<MatchPhrasePrefixQuery.Builder,MatchPhrasePrefixQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<MatchPhrasePrefixQuery.Builder>
-
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 -
build
Builds aMatchPhrasePrefixQuery.- Specified by:
buildin interfaceObjectBuilder<MatchPhrasePrefixQuery>- Throws:
NullPointerException- if some of the required fields are null.
-