Class ShardSearchLocalRequest

  • All Implemented Interfaces:
    ShardSearchRequest

    public class ShardSearchLocalRequest
    extends java.lang.Object
    implements ShardSearchRequest
    Shard level search request that gets created and consumed on the local node. Used directly by api that need to create a search context within their execution. Source structure:
     {
      from : 0, size : 20, (optional, can be set on the request)
      sort : { "name.first" : {}, "name.last" : { reverse : true } }
      fields : [ "name.first", "name.last" ]
      query : { ... }
      aggs : {
          "agg1" : {
              terms : { ... }
          }
      }
     }