# Recover index from ../nodes/0/indices/ to new cluster

**URL:** https://discuss.elastic.co/t/recover-index-from-nodes-0-indices-to-new-cluster/258836
**Category:** Elasticsearch
**Created:** [December 16, 2020, 10:17am UTC](https://discuss.elastic.co/t/recover-index-from-nodes-0-indices-to-new-cluster/258836 "2020-12-16T10:17:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![heikis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/heikis/32/80983_2.png) [@heikis](https://discuss.elastic.co/u/heikis)
#### Post date: [December 16, 2020, 10:17am UTC](https://discuss.elastic.co/t/recover-index-from-nodes-0-indices-to-new-cluster/258836/1 "2020-12-16T10:17:01Z")

</div>

Hello. How complicated is it to recover an index that exists in ../nodes/0/indices/ ?  
For example I have the index data but the cluster that the index was related to is gone? Could I create a new cluster and reindex the data from ../nodes/0/indices/ to the new cluster? What steps would I need to take? Any suggestions are welcome! Thanks.

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [December 16, 2020, 10:21am UTC](https://discuss.elastic.co/t/recover-index-from-nodes-0-indices-to-new-cluster/258836/2 "2020-12-16T10:21:26Z")

</div>

In older versions this may be possible, although I have never tried. If you are on a reasonably recent version it is as far as I know however not at all possible.

---

<div class="post-metadata">

### Author: ![heikis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/heikis/32/80983_2.png) [@heikis](https://discuss.elastic.co/u/heikis)
#### Post date: [December 16, 2020, 11:10am UTC](https://discuss.elastic.co/t/recover-index-from-nodes-0-indices-to-new-cluster/258836/3 "2020-12-16T11:10:15Z")

</div>

It seems that we were able to recover the index using the "import dangling index API". The new cluster's data path was set to the path of indexes related to the old cluster.

Then we find the dangling indexes: `GET /_dangling`  
And then we imported the dangling indexes: `POST /_dangling/<index-uuid>?accept_data_loss=true`

Of course we need to be careful not to overwrite any existing indexes.

> **[List dangling indices API | Elasticsearch Reference \[7.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/dangling-indices-list.html)**

  

> **[Import dangling index API | Elasticsearch Reference \[7.10\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/dangling-index-import.html)**

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [January 13, 2021, 11:10am UTC](https://discuss.elastic.co/t/recover-index-from-nodes-0-indices-to-new-cluster/258836/4 "2021-01-13T11:10:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
