Class MultiGetRequestBuilder

    • Method Detail

      • setPreference

        public MultiGetRequestBuilder setPreference​(java.lang.String preference)
        Sets the preference to execute the search. Defaults to randomize across shards. Can be set to _local to prefer local shards, _primary to execute only on primary 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.