[[reference-shared-types--global-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 || || || || || || || =========================================================================================================================== //////// == Shared Reindex types [discrete] [[ReindexDestination]] === ReindexDestination [pass] ++++
++++
interface ReindexDestination {
  pass:[/**] @property index The name of the data stream, index, or index alias you are copying to. */
  index: <>
  pass:[/**] @property op_type Set to `create` to only index documents that do not already exist. Important: To reindex to a data stream destination, this argument must be `create`. */
  op_type?: <>
  pass:[/**] @property pipeline The name of the pipeline to use. */
  pipeline?: string
  pass:[/**] @property routing By default, a document's routing is preserved unless it’s changed by the script. Set to `discard` to set routing to `null`, or `=value` to route using the specified `value`. */
  routing?: <>
  pass:[/**] @property version_type The versioning to use for the indexing operation. */
  version_type?: <>
}
[pass]
++++
++++ [discrete] [[ReindexRemoteSource]] === ReindexRemoteSource [pass] ++++
++++
interface ReindexRemoteSource {
  pass:[/**] @property connect_timeout The remote connection timeout. Defaults to 30 seconds. */
  connect_timeout?: <>
  pass:[/**] @property headers An object containing the headers of the request. */
  headers?: Record
  pass:[/**] @property host The URL for the remote instance of Elasticsearch that you want to index from. */
  host: <>
  pass:[/**] @property username The username to use for authentication with the remote host. */
  username?: <>
  pass:[/**] @property password The password to use for authentication with the remote host. */
  password?: <>
  pass:[/**] @property socket_timeout The remote socket read timeout. Defaults to 30 seconds. */
  socket_timeout?: <>
}
[pass]
++++
++++ [discrete] [[ReindexRequest]] === ReindexRequest [pass] ++++
++++
interface ReindexRequest extends <> {
  refresh?: boolean
  requests_per_second?: <>
  scroll?: <>
  slices?: <>
  timeout?: <>
  wait_for_active_shards?: <>
  wait_for_completion?: boolean
  require_alias?: boolean
  conflicts?: <>
  dest: <>
  max_docs?: <>
  script?: <