# Undo index to searchable snapshot conversion

**URL:** <https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-searchable-snapshots\
**Created:** [June 6, 2021, 4:43pm UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073 "2021-06-06T16:43:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexs1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@alexs1](https://discuss.elastic.co/u/alexs1)\
**Post date:** [June 6, 2021, 4:43pm UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/1 "2021-06-06T16:43:48Z")

</div>

Hello

My question is:  
Once I checked the searchable snapshot in the ILM cold phase, the index settings, ilm settings and more have changed (as expected)

Is there a way to "undo" this step, and return it to be a regular index with a replica etc..?

Thank you!

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [June 6, 2021, 5:55pm UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/2 "2021-06-06T17:55:41Z")

</div>

> [@alexs1](#):
>
> Is there a way to "undo" this step, and return it to be a regular index with a replica etc..?

If it's just replicas you want, you can add them to searchable snapshots just like regular indices: just set the index setting `index.number_of_replicas` or `index.auto_expand_replicas`.

If you want to move it back to a regular index for some other reason, you can restore the snapshot that sits behind the searchable snapshot index: it's just a normal snapshot. I believe the resulting index won't be ILM-managed however.

---

<div class="post-metadata">

**Author:** ![alexs1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@alexs1](https://discuss.elastic.co/u/alexs1)\
**Post date:** [June 7, 2021, 11:20am UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/3 "2021-06-07T11:20:08Z")

</div>

thanks a lot!

when looking in snapshots & restore page inKIbana, the original index name it's not in the last snaphot indices list,

instead there is another one: restored-{original-index-name\*}, which also exists in the cluster's indices of course, and have the original name as an alias.

I guess that means, that it was restored automatically during a search?

how can I know it includes the entire original data of the index, as I've read in the documentation, that there can be a partial restore or a full- depends on the search query.

my goal is to restore the original index back to the cold tier

thank you!

---

<div class="post-metadata">

**Author:** ![alexs1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@alexs1](https://discuss.elastic.co/u/alexs1)\
**Post date:** [June 14, 2021, 7:36am UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/4 "2021-06-14T07:36:48Z")

</div>

@DavidTurner do you think that there is a way to restore the original index?

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [June 14, 2021, 7:52am UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/5 "2021-06-14T07:52:34Z")

</div>

Yes, use the [restore snapshot API](https://www.elastic.co/guide/en/elasticsearch/reference/current/restore-snapshot-api.html). I'm not familiar with the UI in Kibana but I imagine you can do it through that too.

> [@alexs1](#):
>
> how can I know it includes the entire original data of the index, as I've read in the documentation, that there can be a partial restore or a full- depends on the search query.

The snapshot always contains everything, and a regular restore will always copy everything into the cluster. The partial-vs-full thing only applies to searchable snapshot indices, not the underlying snapshot.

---

<div class="post-metadata">

**Author:** ![alexs1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@alexs1](https://discuss.elastic.co/u/alexs1)\
**Post date:** [June 14, 2021, 8:14am UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/6 "2021-06-14T08:14:55Z")

</div>

thanks a lot for getting back @DavidTurner

the issue I'm having is the the original index doesn't appear in the snapshot, but another version of it: "restored-[original index name]", which also exists in the cluster

when trying to restore I get an error

` cannot restore index [restored-.....-000009] because an open index with same name already exists in the cluster. Either close or delete the existing index or restore the index under a different name by providing a rename pattern and replacement name`

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [June 14, 2021, 8:26am UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/7 "2021-06-14T08:26:27Z")

</div>

Oh I see. The snapshot that backs the searchable snapshot index is identified in its index settings, so `GET /restored-...-000009/_settings?flat_settings` should tell you what you need to restore.

---

<div class="post-metadata">

**Author:** ![alexs1](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@alexs1](https://discuss.elastic.co/u/alexs1)\
**Post date:** [June 14, 2021, 8:44am UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/8 "2021-06-14T08:44:29Z")

</div>

perfect thanks!

---

<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:** [July 12, 2021, 8:44am UTC](https://discuss.elastic.co/t/undo-index-to-searchable-snapshot-conversion/275073/9 "2021-07-12T08:44:46Z")

</div>

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