Class DecayPlacement
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.DecayPlacement
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<DecayPlacement>
Json deserializer forDecayPlacement
-
Method Summary
Modifier and TypeMethodDescriptionfinal Double
decay()
Defines how documents are scored at the distance given at scale.static DecayPlacement
final JsonData
offset()
If defined, the decay function will only compute the decay function for documents with a distance greater than the definedoffset
.final JsonData
origin()
The point of origin used for calculating distance.final JsonData
scale()
Defines the distance from origin + offset at which the computed score will equaldecay
parameter.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forDecayPlacement
-
-
Method Details
-
of
-
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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDecayPlacementDeserializer
protected static void setupDecayPlacementDeserializer(ObjectDeserializer<DecayPlacement.Builder> op)
-