Class EvalQueryQuality

java.lang.Object
org.elasticsearch.index.rankeval.EvalQueryQuality
All Implemented Interfaces:
Writeable, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class EvalQueryQuality extends Object implements org.elasticsearch.xcontent.ToXContentFragment, Writeable
Result of the evaluation metric calculation on one particular query alone.
  • Constructor Details

  • Method Details

    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getId

      public String getId()
    • metricScore

      public double metricScore()
    • setMetricDetails

      public void setMetricDetails(MetricDetail breakdown)
    • getMetricDetails

      public MetricDetail getMetricDetails()
    • addHitsAndRatings

      public void addHitsAndRatings(List<RatedSearchHit> hits)
    • getHitsAndRatings

      public List<RatedSearchHit> getHitsAndRatings()
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • fromXContent

      public static EvalQueryQuality fromXContent(org.elasticsearch.xcontent.XContentParser parser, String queryId) throws IOException
      Throws:
      IOException
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object