Package org.elasticsearch.index.rankeval
-
Interface Summary Interface Description EvaluationMetric Implementations ofEvaluationMetricneed to provide a way to compute the quality metric for a result list returned by some search (@linkSearchHits) and a list of rated documents.MetricDetail Details about a specificEvaluationMetricthat should be included in the resonse. -
Class Summary Class Description EvalQueryQuality Result of the evaluation metric calculation on one particular query alone.RankEvalRequest Request to perform a search ranking evaluation.RankEvalResponse Returns the results for aRankEvalRequest.
The response contains a detailed section for each evaluation query in the request and possible failures that happened when execution individual queries.RankEvalSpec Specification of the ranking evaluation request.
This class groups the queries to evaluate, including their document ratings, and the evaluation metric including its parameters.RatedDocument Represents a document (specified by its _index/_id) and its corresponding rating with respect to a specific search query.RatedRequest Definition of a particular query in the ranking evaluation request.
This usually represents a single user search intent and consists of an id (ideally human readable and referencing the search intent), the list of indices to be queries and theSearchSourceBuilderthat will be used to create the search request for this search intent.
Alternatively, a template id and template parameters can be provided instead.
Finally, a list of rated documents for this query also needs to be provided.RatedSearchHit Combines aSearchHitwith a document rating.