reindexedit

client.reindex({
  refresh: boolean,
  timeout: string,
  wait_for_active_shards: string,
  wait_for_completion: boolean,
  requests_per_second: number,
  slices: number,
  body: object
})

Reference

refresh

boolean - Should the effected indexes be refreshed?

timeout

string - Time each individual bulk request should wait for shards that are unavailable.
Default: 1m

wait_for_active_shards or waitForActiveShards

string - 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)

wait_for_completion or waitForCompletion

boolean - Should the request should block until the reindex is complete.
Default: true

requests_per_second or requestsPerSecond

number - The throttle to set on this request in sub-requests per second. -1 means no throttle.

slices

number - The number of slices this task should be divided into. Defaults to 1 meaning the task isn’t sliced into subtasks.
Default: 1

body

object - The search definition using the Query DSL and the prototype for the index request.