java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.DecayPlacement
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class DecayPlacement extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • decay

      @Nullable public final Double decay()
      Defines how documents are scored at the distance given at scale.

      API name: decay

    • offset

      @Nullable public final JsonData offset()
      If defined, the decay function will only compute the decay function for documents with a distance greater than the defined offset.

      API name: offset

    • scale

      @Nullable public final JsonData scale()
      Defines the distance from origin + offset at which the computed score will equal decay parameter.

      API name: scale

    • origin

      @Nullable public final JsonData 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupDecayPlacementDeserializer

      protected static void setupDecayPlacementDeserializer(ObjectDeserializer<DecayPlacement.Builder> op)