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