Class RankEvalResponse

All Implemented Interfaces:

public class RankEvalResponse
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static RankEvalResponse of​(java.util.function.Function<RankEvalResponse.Builder,​ObjectBuilder<RankEvalResponse>> fn)
    • metricScore

      public final double metricScore()
      Required - The overall evaluation quality calculated by the defined metric

      API name: metric_score

    • details

      public final java.util.Map<java.lang.String,​RankEvalMetricDetail> details()
      Required - The details section contains one entry for every query in the original requests section, keyed by the search request id

      API name: details

    • failures

      public final java.util.Map<java.lang.String,​JsonData> failures()
      Required - API name: failures
    • serialize

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

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupRankEvalResponseDeserializer

      protected static void setupRankEvalResponseDeserializer​(ObjectDeserializer<RankEvalResponse.Builder> op)