Class RescoreQuery

java.lang.Object
co.elastic.clients.elasticsearch.core.search.RescoreQuery
All Implemented Interfaces:
JsonpSerializable

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

  • Method Details

    • of

    • query

      public final Query query()
      Required - The query to use for rescoring. This query is only run on the Top-K results returned by the query and post_filter phases.

      API name: rescore_query

    • queryWeight

      @Nullable public final Double queryWeight()
      Relative importance of the original query versus the rescore query.

      API name: query_weight

    • rescoreQueryWeight

      @Nullable public final Double rescoreQueryWeight()
      Relative importance of the rescore query versus the original query.

      API name: rescore_query_weight

    • scoreMode

      @Nullable public final ScoreMode scoreMode()
      Determines how scores are combined.

      API name: score_mode

    • 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
    • setupRescoreQueryDeserializer

      protected static void setupRescoreQueryDeserializer(ObjectDeserializer<RescoreQuery.Builder> op)