# Reindex question

**URL:** <https://discuss.elastic.co/t/reindex-question/22952>\
**Category:** Elasticsearch\
**Created:** [March 27, 2015, 9:10pm UTC](https://discuss.elastic.co/t/reindex-question/22952 "2015-03-27T21:10:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sebastian\_2](https://avatars.discourse-cdn.com/v4/letter/s/e0b2c6/32.png) [@sebastian\_2](https://discuss.elastic.co/u/sebastian_2)\
**Post date:** [March 27, 2015, 9:10pm UTC](https://discuss.elastic.co/t/reindex-question/22952/1 "2015-03-27T21:10:23Z")

</div>

Hi,

Can I reindex the data into the same index/type? My goal is regenerate the  
mapping for specified index/type.

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15848d9e-1b70-434f-a125-44e575c7a5ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15848d9e-1b70-434f-a125-44e575c7a5ce%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 27, 2015, 9:49pm UTC](https://discuss.elastic.co/t/reindex-question/22952/2 "2015-03-27T21:49:06Z")

</div>

No. You should use an alias to the old index.  
Then read from old and copy to new.

Then switch the alias.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 27 mars 2015 à 22:10, sebastian [sebastianos@gmail.com](mailto:sebastianos@gmail.com) a écrit :
> 
> Hi,
> 
> Can I reindex the data into the same index/type? My goal is regenerate the mapping for specified index/type.
> 
> ## Thanks!
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15848d9e-1b70-434f-a125-44e575c7a5ce%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15848d9e-1b70-434f-a125-44e575c7a5ce%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/205347F1-A139-4DD8-BE2D-DF334A7E84BC%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/205347F1-A139-4DD8-BE2D-DF334A7E84BC%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/reindex-question/22952/3 "2017-07-06T00:23:22Z")

</div>


