Class ChiSquareHeuristic.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.ChiSquareHeuristic.Builder
- All Implemented Interfaces:
CopyableBuilder<ChiSquareHeuristic.Builder,,ChiSquareHeuristic> MutableBuilder<ChiSquareHeuristic.Builder,,ChiSquareHeuristic> ObjectBuilder<ChiSquareHeuristic>
- Enclosing class:
ChiSquareHeuristic
public static class ChiSquareHeuristic.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ChiSquareHeuristic.Builder,ChiSquareHeuristic>
Builder for
ChiSquareHeuristic.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbackgroundIsSuperset(boolean value) Required - Set tofalseif you defined a custom background filter that represents a different set of documents that you want to compare to.build()Builds aChiSquareHeuristic.copy()Create a new builderCopyableBuilderthat is a copy of this one.includeNegatives(boolean value) Required - Set tofalseto filter out the terms that appear less often in the subset than in documents outside the subset.Methods 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<ChiSquareHeuristic.Builder,ChiSquareHeuristic> - Returns:
- a new builder instance.
-
backgroundIsSuperset
Required - Set tofalseif you defined a custom background filter that represents a different set of documents that you want to compare to.API name:
background_is_superset -
includeNegatives
Required - Set tofalseto filter out the terms that appear less often in the subset than in documents outside the subset.API name:
include_negatives -
build
Builds aChiSquareHeuristic.- Specified by:
buildin interfaceObjectBuilder<ChiSquareHeuristic>- Throws:
NullPointerException- if some of the required fields are null.
-