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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDecayPlacement
.final DecayPlacement.Builder
Defines how documents are scored at the distance given at scale.final DecayPlacement.Builder
If defined, the decay function will only compute the decay function for documents with a distance greater than the definedoffset
.final DecayPlacement.Builder
The point of origin used for calculating distance.final DecayPlacement.Builder
Defines the distance from origin + offset at which the computed score will equaldecay
parameter.protected DecayPlacement.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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 equaldecay
parameter.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:
self
in classWithJsonObjectBuilderBase<DecayPlacement.Builder>
-
build
Builds aDecayPlacement
.- Specified by:
build
in interfaceObjectBuilder<DecayPlacement>
- Throws:
NullPointerException
- if some of the required fields are null.
-