[[reference-reindex]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.reindex Reindex documents. Copies documents from a source to a destination. The source can be any existing index, alias, or data stream. The destination must differ from the source. For example, you cannot reindex a data stream into itself. {ref}/docs-reindex.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (ReindexRequest, options?): Promise ---- [discrete] ===== `ReindexRequest` [source,ts] ---- interface ReindexRequest extends <> { refresh?: boolean requests_per_second?: <> scroll?: <> slices?: <> timeout?: <> wait_for_active_shards?: <> wait_for_completion?: boolean require_alias?: boolean conflicts?: <> dest: ReindexDestination max_docs?: <> script?: <> | string size?: <> source: ReindexSource } ---- [discrete] ===== `ReindexResponse` [source,ts] ---- interface ReindexResponse { batches?: <> created?: <> deleted?: <> failures?: <>[] noops?: <> retries?: <> requests_per_second?: <> slice_id?: <> task?: <> throttled_millis?: <><<>> throttled_until_millis?: <><<>> timed_out?: boolean took?: <><<>> total?: <> updated?: <> version_conflicts?: <> } ----