Package org.elasticsearch.action.get
Class MultiGetRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<MultiGetRequest,MultiGetResponse>
org.elasticsearch.action.get.MultiGetRequestBuilder
A multi get document action request builder.
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(MultiGetRequest.Item item)setPreference(String preference)Sets the preference to execute the search.setRealtime(boolean realtime)setRefresh(boolean refresh)Should a refresh be executed before this get operation causing the operation to return the latest value.
-
Constructor Details
-
MultiGetRequestBuilder
-
-
Method Details
-
add
-
add
-
add
-
add
-
setPreference
Sets the preference to execute the search. Defaults to randomize across shards. Can be set to_localto prefer local shards or a custom value, which guarantees that the same order will be used across different requests. -
setRefresh
Should a refresh be executed before this get operation causing the operation to return the latest value. Note, heavy get should not set this totrue. Defaults tofalse. -
setRealtime
-