public static class SearchShards.Builder extends AbstractMultiTypeActionBuilder<SearchShards,SearchShards.Builder>
indexNamescleanApiParameters, headers, parameters| Constructor and Description |
|---|
SearchShards.Builder() |
| Modifier and Type | Method and Description |
|---|---|
SearchShards |
build() |
SearchShards.Builder |
local(Boolean local) |
SearchShards.Builder |
preference(String preference) |
SearchShards.Builder |
routing(String routing) |
addType, addType, getJoinedTypesaddIndex, addIndex, allowNoIndices, getJoinedIndices, ignoreUnavailableaddCleanApiParameter, refresh, removeCleanApiParameter, resultCasing, setHeader, setHeader, setParameter, setParameter, toggleApiParameterpublic SearchShards.Builder routing(String routing)
routing - A comma-separated list of routing values to take into account when
determining which shards a request would be executed against.public SearchShards.Builder preference(String preference)
preference - Controls a preference of which shard replicas to execute the search request on.
By default, the operation is randomized between the shard replicas. See the
preference documentation
for a list of all acceptable values.public SearchShards.Builder local(Boolean local)
local - A boolean value whether to read the cluster state locally in order to determine
where shards are allocated instead of using the Master node’s cluster state.public SearchShards build()
build in class AbstractMultiIndexActionBuilder<SearchShards,SearchShards.Builder>Copyright © 2017. All rights reserved.