Reindex all documents from one index to another.
reindex( conn, body, refresh = NULL, requests_per_second = NULL, slices = NULL, timeout = NULL, wait_for_active_shards = NULL, wait_for_completion = NULL, ... )
an Elasticsearch connection object, see
(list/character/json) The search definition using the Query DSL and the prototype for the index request.
(logical) Should the effected indexes be refreshed?
(integer) The throttle to set on this request in sub-requests per second. - 1 means no throttle. Default: 0
(integer) The number of slices this task should be divided into. Defaults to 1 meaning the task isn't sliced into subtasks. Default: 1
(character) Time each individual bulk request should wait for shards that are unavailable. Default: '1m'
(integer) Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set to all for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)
(logical) Should the request block until the
reindex is complete? Default:
Curl options, passed on to crul::verb-POST