# Can I reindex old indexes to a new schema so as not to lose any information?

**URL:** <https://discuss.elastic.co/t/can-i-reindex-old-indexes-to-a-new-schema-so-as-not-to-lose-any-information/187152>\
**Category:** Elasticsearch\
**Created:** [June 24, 2019, 2:01pm UTC](https://discuss.elastic.co/t/can-i-reindex-old-indexes-to-a-new-schema-so-as-not-to-lose-any-information/187152 "2019-06-24T14:01:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![byoungman](https://avatars.discourse-cdn.com/v4/letter/b/838e76/32.png) [@byoungman](https://discuss.elastic.co/u/byoungman)\
**Post date:** [June 24, 2019, 2:01pm UTC](https://discuss.elastic.co/t/can-i-reindex-old-indexes-to-a-new-schema-so-as-not-to-lose-any-information/187152/1 "2019-06-24T14:01:47Z")

</div>

I just found out from our development group that they are going to be changing the schema of our Elasticsearch indexes specifically changing property names to better align with what they are doing.

They'll be keeping the same log data just changing the property names. That means we will have legacy indexes that will no longer be usable by a UI developed for our Customer Support team.

Examples:  
myPayload =\> payload  
myTime =\> time  
myIP =\> ip

The UI will be changed to use the new property names but would like to know if there is a way to reindex old legacy indexes to the new schema mapping so that CS doesn't have to come to us everytime they need log information.

TIA,  
Bill Youngman

---

<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:** [June 24, 2019, 2:18pm UTC](https://discuss.elastic.co/t/can-i-reindex-old-indexes-to-a-new-schema-so-as-not-to-lose-any-information/187152/2 "2019-06-24T14:18:52Z")

</div>

you can use the reindex API indeed or you can also have a look at field aliases: [https://www.elastic.co/blog/introducing-field-aliases-in-elasticsearch](https://www.elastic.co/blog/introducing-field-aliases-in-elasticsearch)

---

<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 22, 2019, 2:18pm UTC](https://discuss.elastic.co/t/can-i-reindex-old-indexes-to-a-new-schema-so-as-not-to-lose-any-information/187152/3 "2019-07-22T14:18:58Z")

</div>

Closed on July 22, 2019, 2:18pm UTC

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