lib/elasticsearch/api/actions/update_by_query.rb in elasticsearch-api-6.0.2 vs lib/elasticsearch/api/actions/update_by_query.rb in elasticsearch-api-6.0.3
- old
+ new
@@ -59,10 +59,11 @@
# @option arguments [Boolean] :refresh Should the effected indexes be refreshed?
# @option arguments [String] :consistency Explicit write consistency setting for the operation (options: one, quorum, all)
# @option arguments [Integer] :scroll_size Size on the scroll request powering the update_by_query
# @option arguments [Boolean] :wait_for_completion Should the request should block until the reindex is complete.
# @option arguments [Float] :requests_per_second The throttle for this request in sub-requests per second. 0 means set no throttle.
+ # @option arguments [Integer] :slices The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks.
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html
#
def update_by_query(arguments={})
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
@@ -107,10 +108,11 @@
:request_cache,
:refresh,
:consistency,
:scroll_size,
:wait_for_completion,
- :requests_per_second ]
+ :requests_per_second,
+ :slices ]
method = HTTP_POST
path = Utils.__pathify Utils.__listify(arguments[:index]),
Utils.__listify(arguments[:type]),