lib/elasticsearch/api/actions/reindex.rb in elasticsearch-api-6.0.2 vs lib/elasticsearch/api/actions/reindex.rb in elasticsearch-api-6.0.3
- old
+ new
@@ -41,23 +41,26 @@
# @option arguments [Time] :timeout Time each individual bulk request should wait for shards
# that are unavailable. (Default: 1m)
# @option arguments [String] :consistency Explicit write consistency setting for the operation
# (Options: one, quorum, all)
# @option arguments [Boolean] :wait_for_completion Whether the request should block and wait until
- # the operation has completed
+ # the operation has completed
# @option arguments [Float] :requests_per_second The throttling for this request in sub-requests per second.
# 0 means set no throttling (default)
+ # @option arguments [Integer] :slices The number of slices this request should be divided into.
+ # Defaults to 1 meaning the request isn't sliced into sub-requests.
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html
#
def reindex(arguments={})
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
valid_params = [
:refresh,
:timeout,
:consistency,
:wait_for_completion,
- :requests_per_second ]
+ :requests_per_second,
+ :slices ]
method = 'POST'
path = "_reindex"
params = Utils.__validate_and_extract_params arguments, valid_params
body = arguments[:body]