Package org.elasticsearch.action.get
Class MultiGetRequestBuilder
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
-
Method Summary
Modifier and TypeMethodDescriptionindex, type, <> ids)
index, type, id)
index, type, ... ids)
add(MultiGetRequest.Item item)
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.Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, get, request
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
MultiGetRequestBuilder
-
-
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
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
-