# Reindex: how Elastic handle index names

**URL:** <https://discuss.elastic.co/t/reindex-how-elastic-handle-index-names/291336>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [December 9, 2021, 2:11pm UTC](https://discuss.elastic.co/t/reindex-how-elastic-handle-index-names/291336 "2021-12-09T14:11:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mauog](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@mauog](https://discuss.elastic.co/u/mauog)\
**Post date:** [December 9, 2021, 2:11pm UTC](https://discuss.elastic.co/t/reindex-how-elastic-handle-index-names/291336/1 "2021-12-09T14:11:22Z")

</div>

Hello,  
I read sometime that some operation are impossible on current index and so the strategy is to create a new one an the reindex there all the data stored.  
I'm a newbie here and this could be a stupid question but my doubt is related to how elastic handle indexes generated by a template.  
To be more pragmatic:  
I have some inexes:

my\_index-0001  
my\_index-0002  
my\_index-0003 (current)

Now I have to create a new index to reindex the my\_index-0002.  
Can I create a my\_index-0004 and them operate on it? What happen when elastic need to close the 0003? There could be problem because the next number is already used (manually generated by me)?  
What is the strategy in this case?

Thanks

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 21, 2021, 6:59pm UTC](https://discuss.elastic.co/t/reindex-how-elastic-handle-index-names/291336/2 "2021-12-21T18:59:15Z")

</div>

Perhaps name your reindexed the index something like

`my_index-reindex`

Or

`my_index-0002-reindex`

Or

`my_index-0002R`

---

<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 18, 2022, 6:59pm UTC](https://discuss.elastic.co/t/reindex-how-elastic-handle-index-names/291336/3 "2022-01-18T18:59:52Z")

</div>

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