# Elasticsearch cluster change schema in the same index

**URL:** https://discuss.elastic.co/t/elasticsearch-cluster-change-schema-in-the-same-index/362054
**Category:** Elasticsearch
**Created:** [June 25, 2024, 9:41pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-change-schema-in-the-same-index/362054 "2024-06-25T21:41:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![thatelasticguy](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@thatelasticguy](https://discuss.elastic.co/u/thatelasticguy)
#### Post date: [June 25, 2024, 9:41pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-change-schema-in-the-same-index/362054/1 "2024-06-25T21:41:28Z")

</div>

We are using elasticsearch cluster version 7.10. And have some data in an index. We have updated schema for the cluster index and wanted to migrate the data from old schema to new schema in the same index.

Is there any better way to do this? Or what options do we have to achieve this?

Thank you.

---

<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 26, 2024, 7:21am UTC](https://discuss.elastic.co/t/elasticsearch-cluster-change-schema-in-the-same-index/362054/2 "2024-06-26T07:21:57Z")

</div>

I'd use the [reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html).

But while you are at it, please upgrade at the very least to 7.17. Your version is unsecured so you are at risk.  
Better to upgrade to 8.14.1. So many improvements since then.

---

<div class="post-metadata">

### Author: ![thatelasticguy](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@thatelasticguy](https://discuss.elastic.co/u/thatelasticguy)
#### Post date: [June 26, 2024, 4:36pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-change-schema-in-the-same-index/362054/3 "2024-06-26T16:36:34Z")

</div>

Thank you for suggesting the upgrades. But I believe that api is not available for 7.10 version cluster?

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [June 26, 2024, 5:32pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-change-schema-in-the-same-index/362054/4 "2024-06-26T17:32:03Z")

</div>

> [@thatelasticguy](#):
>
> But I believe that api is not available for 7.10 version cluster?

It is, you need to change the version on the left side drop down menu.

Here is the direct link: [Reindex API | Elasticsearch Guide [7.10] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.10/docs-reindex.html)
