Class RankEvalSpec

  • All Implemented Interfaces:
    Writeable, ToXContent, ToXContentObject

    public class RankEvalSpec
    extends java.lang.Object
    implements Writeable, 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 Detail

      • RankEvalSpec

        public RankEvalSpec​(java.util.List<RatedRequest> ratedRequests,
                            EvaluationMetric metric,
                            java.util.Collection<org.elasticsearch.index.rankeval.RankEvalSpec.ScriptWithId> templates)
      • RankEvalSpec

        public RankEvalSpec​(StreamInput in)
                     throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • writeTo

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

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

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

        public java.util.Map<java.lang.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.
      • toString

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

        public final boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object