Class RestRankEvalAction

  • All Implemented Interfaces:
    org.elasticsearch.rest.RestHandler

    public class RestRankEvalAction
    extends org.elasticsearch.rest.BaseRestHandler
    { "requests": [{ "id": "amsterdam_query", "request": { "query": { "match": { "text": "amsterdam" } } }, "ratings": [{ "_index": "foo", "_id": "doc1", "rating": 0 }, { "_index": "foo", "_id": "doc2", "rating": 1 }, { "_index": "foo", "_id": "doc3", "rating": 1 } ] }, { "id": "berlin_query", "request": { "query": { "match": { "text": "berlin" } }, "size": 10 }, "ratings": [{ "_index": "foo", "_id": "doc1", "rating": 1 }] } ], "metric": { "precision": { "ignore_unlabeled": true } } }
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.elasticsearch.rest.BaseRestHandler

        org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENDPOINT  
      • Fields inherited from class org.elasticsearch.common.component.AbstractComponent

        deprecationLogger, logger, settings
      • Fields inherited from class org.elasticsearch.rest.BaseRestHandler

        MULTI_ALLOW_EXPLICIT_INDEX
    • Constructor Summary

      Constructors 
      Constructor Description
      RestRankEvalAction​(org.elasticsearch.common.settings.Settings settings, org.elasticsearch.rest.RestController controller)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()  
      protected org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest​(org.elasticsearch.rest.RestRequest request, org.elasticsearch.client.node.NodeClient client)  
      • Methods inherited from class org.elasticsearch.common.component.AbstractComponent

        logDeprecatedSetting, logRemovedSetting, nodeName
      • Methods inherited from class org.elasticsearch.rest.BaseRestHandler

        getUsageCount, handleRequest, responseParams, unrecognized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.elasticsearch.rest.RestHandler

        canTripCircuitBreaker, supportsContentStream
    • Field Detail

      • ENDPOINT

        public static java.lang.String ENDPOINT
    • Constructor Detail

      • RestRankEvalAction

        public RestRankEvalAction​(org.elasticsearch.common.settings.Settings settings,
                                  org.elasticsearch.rest.RestController controller)
    • Method Detail

      • prepareRequest

        protected org.elasticsearch.rest.BaseRestHandler.RestChannelConsumer prepareRequest​(org.elasticsearch.rest.RestRequest request,
                                                                                            org.elasticsearch.client.node.NodeClient client)
                                                                                     throws java.io.IOException
        Specified by:
        prepareRequest in class org.elasticsearch.rest.BaseRestHandler
        Throws:
        java.io.IOException
      • getName

        public java.lang.String getName()
        Specified by:
        getName in class org.elasticsearch.rest.BaseRestHandler