Class CommonTermsQuery.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.QueryBase.AbstractBuilder<CommonTermsQuery.Builder>
org.opensearch.client.opensearch._types.query_dsl.CommonTermsQuery.Builder
- All Implemented Interfaces:
CopyableBuilder<CommonTermsQuery.Builder,,CommonTermsQuery> MutableBuilder<CommonTermsQuery.Builder,,CommonTermsQuery> ObjectBuilder<CommonTermsQuery>
- Enclosing class:
CommonTermsQuery
public static class CommonTermsQuery.Builder
extends QueryBase.AbstractBuilder<CommonTermsQuery.Builder>
implements CopyableBuilder<CommonTermsQuery.Builder,CommonTermsQuery>
Builder for
CommonTermsQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CommonTermsQuery.BuilderAPI name:analyzerbuild()Builds aCommonTermsQuery.copy()Create a new builderCopyableBuilderthat is a copy of this one.final CommonTermsQuery.BuildercutoffFrequency(Float value) API name:cutoff_frequencyfinal CommonTermsQuery.BuilderRequired - The target fieldfinal CommonTermsQuery.BuilderhighFreqOperator(Operator value) API name:high_freq_operatorfinal CommonTermsQuery.BuilderlowFreqOperator(Operator value) API name:low_freq_operatorfinal CommonTermsQuery.BuilderminimumShouldMatch(String value) API name:minimum_should_matchfinal CommonTermsQuery.BuilderRequired - API name:queryprotected CommonTermsQuery.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<CommonTermsQuery.Builder,CommonTermsQuery> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classQueryBase.AbstractBuilder<CommonTermsQuery.Builder>
-
analyzer
API name:analyzer -
cutoffFrequency
API name:cutoff_frequency -
field
Required - The target field -
highFreqOperator
API name:high_freq_operator -
lowFreqOperator
API name:low_freq_operator -
minimumShouldMatch
API name:minimum_should_match -
query
Required - API name:query -
build
Builds aCommonTermsQuery.- Specified by:
buildin interfaceObjectBuilder<CommonTermsQuery>- Throws:
NullPointerException- if some of the required fields are null.
-