11[[indices-clone-index]]
2- == Clone Index
2+ === Clone Index
33
44The clone index API allows you to clone an existing index into a new index,
55where each original primary shard is cloned into a new primary shard in
66the new index.
77
88[float]
9- === How does cloning work?
9+ ==== How does cloning work?
1010
1111Cloning works as follows:
1212
@@ -21,7 +21,7 @@ Cloning works as follows:
2121 had just been re-opened.
2222
2323[float]
24- === Preparing an index for cloning
24+ ==== Preparing an index for cloning
2525
2626Create a new index:
2727
@@ -57,7 +57,7 @@ PUT /my_source_index/_settings
5757 changes like deleting the index.
5858
5959[float]
60- === Cloning an index
60+ ==== Cloning an index
6161
6262To clone `my_source_index` into a new index called `my_target_index`, issue
6363the following request:
@@ -112,7 +112,7 @@ NOTE: Mappings may not be specified in the `_clone` request. The mappings of
112112the source index will be used for the target index.
113113
114114[float]
115- === Monitoring the clone process
115+ ==== Monitoring the clone process
116116
117117The clone process can be monitored with the <<cat-recovery,`_cat recovery`
118118API>>, or the <<cluster-health, `cluster health` API>> can be used to wait
@@ -131,7 +131,7 @@ become `active`. At that point, Elasticsearch will try to allocate any
131131replicas and may decide to relocate the primary shard to another node.
132132
133133[float]
134- === Wait For Active Shards
134+ ==== Wait For Active Shards
135135
136136Because the clone operation creates a new index to clone the shards to,
137137the <<create-index-wait-for-active-shards,wait for active shards>> setting
0 commit comments