Class MatchBoolPrefixQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<MatchBoolPrefixQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.MatchBoolPrefixQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<MatchBoolPrefixQuery.Builder,,MatchBoolPrefixQuery> MutableBuilder<MatchBoolPrefixQuery.Builder,,MatchBoolPrefixQuery> ObjectBuilder<MatchBoolPrefixQuery>
- Enclosing class:
MatchBoolPrefixQuery
public static class MatchBoolPrefixQuery.Builder
extends QueryBase.AbstractBuilder<MatchBoolPrefixQuery.Builder>
implements CopyableBuilder<MatchBoolPrefixQuery.Builder,MatchBoolPrefixQuery>
Builder for
MatchBoolPrefixQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAnalyzer used to convert the text in the query value into tokens.build()Builds aMatchBoolPrefixQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - The target fieldAPI name:fuzzinessfuzzyRewrite(String value) API name:fuzzy_rewritefuzzyTranspositions(Boolean value) Iftrue, edits for fuzzy matching include transpositions of two adjacent characters (for example,abtoba).maxExpansions(Integer value) Maximum number of terms to which the query will expand.minimumShouldMatch(String value) API name:minimum_should_matchAPI name:operatorprefixLength(Integer value) Number of beginning characters left unchanged for fuzzy matching.Required - Terms you wish to find in the provided field.protected MatchBoolPrefixQuery.Builderself()Methods 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<MatchBoolPrefixQuery.Builder,MatchBoolPrefixQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<MatchBoolPrefixQuery.Builder>
-
analyzer
Analyzer used to convert the text in the query value into tokens.API name:
analyzer -
field
Required - The target field -
fuzziness
API name:fuzziness -
fuzzyRewrite
API name:fuzzy_rewrite -
fuzzyTranspositions
Iftrue, edits for fuzzy matching include transpositions of two adjacent characters (for example,abtoba). Can be applied to the term subqueries constructed for all terms but the final term.API name:
fuzzy_transpositions -
maxExpansions
Maximum number of terms to which the query will expand. Can be applied to the term subqueries constructed for all terms but the final term.API name:
max_expansions -
minimumShouldMatch
API name:minimum_should_match -
operator
API name:operator -
prefixLength
Number of beginning characters left unchanged for fuzzy matching. Can be applied to the term subqueries constructed for all terms but the final term.API name:
prefix_length -
query
Required - Terms you wish to find in the provided field. The last term is used in a prefix query.API name:
query -
build
Builds aMatchBoolPrefixQuery.- Specified by:
buildin interfaceObjectBuilder<MatchBoolPrefixQuery>- Throws:
NullPointerException- if some of the required fields are null.
-