Class ChiSquareHeuristic.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ChiSquareHeuristic.Builder>
co.elastic.clients.elasticsearch._types.aggregations.ChiSquareHeuristic.Builder
- All Implemented Interfaces:
WithJson<ChiSquareHeuristic.Builder>,ObjectBuilder<ChiSquareHeuristic>
- Enclosing class:
- ChiSquareHeuristic
public static class ChiSquareHeuristic.Builder
extends WithJsonObjectBuilderBase<ChiSquareHeuristic.Builder>
implements ObjectBuilder<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.includeNegatives(boolean value) Required - Set tofalseto filter out the terms that appear less often in the subset than in documents outside the subset.protected ChiSquareHeuristic.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ChiSquareHeuristic.Builder>
-
build
Builds aChiSquareHeuristic.- Specified by:
buildin interfaceObjectBuilder<ChiSquareHeuristic>- Throws:
NullPointerException- if some of the required fields are null.
-