Class MatchPhraseQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<MatchPhraseQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.MatchPhraseQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<MatchPhraseQuery.Builder,,MatchPhraseQuery> MutableBuilder<MatchPhraseQuery.Builder,,MatchPhraseQuery> ObjectBuilder<MatchPhraseQuery>
- Enclosing class:
MatchPhraseQuery
public static class MatchPhraseQuery.Builder
extends QueryBase.AbstractBuilder<MatchPhraseQuery.Builder>
implements CopyableBuilder<MatchPhraseQuery.Builder,MatchPhraseQuery>
Builder for
MatchPhraseQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal MatchPhraseQuery.BuilderAnalyzer used to convert the text in the query value into tokens.build()Builds aMatchPhraseQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final MatchPhraseQuery.BuilderRequired - The target fieldfinal MatchPhraseQuery.BuilderRequired - Query terms that are analyzed and turned into a phrase query.protected MatchPhraseQuery.Builderself()final MatchPhraseQuery.BuilderMaximum number of positions allowed between matching tokens.final MatchPhraseQuery.BuilderzeroTermsQuery(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<MatchPhraseQuery.Builder,MatchPhraseQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<MatchPhraseQuery.Builder>
-
analyzer
Analyzer used to convert the text in the query value into tokens.API name:
analyzer -
field
Required - The target field -
query
Required - Query terms that are analyzed and turned into a phrase query.API name:
query -
slop
Maximum number of positions allowed between matching tokens.API name:
slop -
zeroTermsQuery
API name:zero_terms_query -
build
Builds aMatchPhraseQuery.- Specified by:
buildin interfaceObjectBuilder<MatchPhraseQuery>- Throws:
NullPointerException- if some of the required fields are null.
-