Class MultiGetRequestBuilder

org.elasticsearch.action.ActionRequestBuilder<MultiGetRequest,​MultiGetResponse>
org.elasticsearch.action.get.MultiGetRequestBuilder

public class MultiGetRequestBuilder extends ActionRequestBuilder<MultiGetRequest,​MultiGetResponse>
A multi get document action request builder.
  • Constructor Details

  • Method Details

    • add

      public  index, @Nullable  type,  id)
    • add

      public  index, @Nullable  type, <> ids)
    • add

      public  index, @Nullable  type, ... ids)
    • add

    • setPreference

      public  preference)
      Sets the preference to execute the search. Defaults to randomize across shards. Can be set to _local to prefer local shards or a custom value, which guarantees that the same order will be used across different requests.
    • setRefresh

      public MultiGetRequestBuilder setRefresh(boolean refresh)
      Should a refresh be executed before this get operation causing the operation to return the latest value. Note, heavy get should not set this to true. Defaults to false.
    • setRealtime

      public MultiGetRequestBuilder setRealtime(boolean realtime)