Class RankEvalSpec

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

public class RankEvalSpec extends Object implements Writeable, org.elasticsearch.xcontent.ToXContentObject
Specification of the ranking evaluation request.
This class groups the queries to evaluate, including their document ratings, and the evaluation metric including its parameters.
  • Constructor Details

  • Method Details

    • writeTo

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

      public EvaluationMetric getMetric()
      Returns the metric to use for quality evaluation.
    • getRatedRequests

      public List<RatedRequest> getRatedRequests()
      Returns a list of intent to query translation specifications to evaluate.
    • getTemplates

      public Map<String,Script> getTemplates()
      Returns the template to base test requests on.
    • getMaxConcurrentSearches

      public int getMaxConcurrentSearches()
      Returns the max concurrent searches allowed.
    • setMaxConcurrentSearches

      public void setMaxConcurrentSearches(int maxConcurrentSearches)
      Set the max concurrent searches allowed.
    • parse

      public static RankEvalSpec parse(org.elasticsearch.xcontent.XContentParser parser)
    • 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
    • toString

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

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

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