Class DecayPlacement.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DecayPlacement.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.DecayPlacement.Builder
- All Implemented Interfaces:
WithJson<DecayPlacement.Builder>,ObjectBuilder<DecayPlacement>
- Enclosing class:
- DecayPlacement
public static class DecayPlacement.Builder
extends WithJsonObjectBuilderBase<DecayPlacement.Builder>
implements ObjectBuilder<DecayPlacement>
Builder for
DecayPlacement.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDecayPlacement.final DecayPlacement.BuilderDefines how documents are scored at the distance given at scale.final DecayPlacement.BuilderIf defined, the decay function will only compute the decay function for documents with a distance greater than the definedoffset.final DecayPlacement.BuilderThe point of origin used for calculating distance.final DecayPlacement.BuilderDefines the distance from origin + offset at which the computed score will equaldecayparameter.protected DecayPlacement.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
-
decay
Defines how documents are scored at the distance given at scale.API name:
decay -
offset
If defined, the decay function will only compute the decay function for documents with a distance greater than the definedoffset.API name:
offset -
scale
Defines the distance from origin + offset at which the computed score will equaldecayparameter.API name:
scale -
origin
The point of origin used for calculating distance. Must be given as a number for numeric field, date for date fields and geo point for geo fields.API name:
origin -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DecayPlacement.Builder>
-
build
Builds aDecayPlacement.- Specified by:
buildin interfaceObjectBuilder<DecayPlacement>- Throws:
NullPointerException- if some of the required fields are null.
-