Class TermsSetQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<TermsSetQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.TermsSetQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<TermsSetQuery.Builder,,TermsSetQuery> MutableBuilder<TermsSetQuery.Builder,,TermsSetQuery> ObjectBuilder<TermsSetQuery>
- Enclosing class:
TermsSetQuery
public static class TermsSetQuery.Builder
extends QueryBase.AbstractBuilder<TermsSetQuery.Builder>
implements CopyableBuilder<TermsSetQuery.Builder,TermsSetQuery>
Builder for
TermsSetQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTermsSetQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final TermsSetQuery.BuilderRequired - The target fieldfinal TermsSetQuery.BuilderminimumShouldMatchField(String value) API name:minimum_should_match_fieldfinal TermsSetQuery.BuilderAPI name:minimum_should_match_scriptfinal TermsSetQuery.BuilderminimumShouldMatchScript(Script value) API name:minimum_should_match_scriptprotected TermsSetQuery.Builderself()final TermsSetQuery.BuilderRequired - API name:termsfinal TermsSetQuery.BuilderRequired - API name:termsMethods 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<TermsSetQuery.Builder,TermsSetQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<TermsSetQuery.Builder>
-
field
Required - The target field -
minimumShouldMatchField
API name:minimum_should_match_field -
minimumShouldMatchScript
API name:minimum_should_match_script -
minimumShouldMatchScript
@Nonnull public final TermsSetQuery.Builder minimumShouldMatchScript(Function<Script.Builder, ObjectBuilder<Script>> fn) API name:minimum_should_match_script -
terms
Required - API name:termsAdds all elements of
listtoterms. -
terms
Required - API name:termsAdds one or more values to
terms. -
build
Builds aTermsSetQuery.- Specified by:
buildin interfaceObjectBuilder<TermsSetQuery>- Throws:
NullPointerException- if some of the required fields are null.
-