# Elastic Upgrade: 6.60 to 7.14, can I keep the index with old mapping?

**URL:** <https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520>\
**Category:** Elasticsearch\
**Created:** [August 5, 2022, 11:56am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520 "2022-08-05T11:56:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![iyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iyan/32/109303_2.png) [@iyan](https://discuss.elastic.co/u/iyan)\
**Post date:** [August 5, 2022, 11:56am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520/1 "2022-08-05T11:56:00Z")

</div>

I have the task to upgrade our elastic from 6.60 to 7.14. According to [Upgrade to Elasticsearch 7.x | Elasticsearch Service Documentation | Elastic](https://www.elastic.co/guide/en/cloud/current/ec-upgrading-v7.html) the 6.x indices are compatible with 7.x.

> Elasticsearch 7.x is compatible with indices created in version 6.0 or later.

So far so good, but checking the breaking changes that came with 7.0 shows that some mapping fields are not supported anymore: [Breaking changes in 7.0 | Elasticsearch Guide [7.17] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/breaking-changes-7.0.html#all-meta-field-removed)

So how do I proceed now? It seems like the index is not compatible because of its mappings and I need to create a new one or am I missing something?

It's not possible to update mappings so the only solution I see right now is to create a new index and delete the old one?

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 8, 2022, 12:54am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520/2 "2022-08-08T00:54:35Z")

</div>

Welcome to our community! 😃

If your index contains fields that are not supported you will need to reindex into a new index and change those mappings, as you mention.

---

<div class="post-metadata">

**Author:** ![iyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iyan/32/109303_2.png) [@iyan](https://discuss.elastic.co/u/iyan)\
**Post date:** [August 9, 2022, 7:55am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520/3 "2022-08-09T07:55:35Z")

</div>

Hi, thank you 🙂

is it possible to simply reuse the data I have in my elastic data folder? So right now, I created a new elastic container with the 7.x version. Created a new index with an updated mapping.

Now as the last step I would like to copy paste the data from the old elastic to the data folder of the new one.

Can this work? I can't think of another way how to do that.

Thanks

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 9, 2022, 7:56am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520/4 "2022-08-09T07:56:21Z")

</div>

It should work, yeah. Just make sure both nodes are shutdown and you have a backup.

---

<div class="post-metadata">

**Author:** ![iyan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/iyan/32/109303_2.png) [@iyan](https://discuss.elastic.co/u/iyan)\
**Post date:** [August 9, 2022, 8:59am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520/5 "2022-08-09T08:59:50Z")

</div>

Okay I realised that I can't simply copy the data folder from the old to the new container because the data also comes with the deprecated mapping from 6.x.

So in this case I have to reindex or is there another solution?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 9, 2022, 9:09am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520/6 "2022-08-09T09:09:19Z")

</div>

Do a remote reindex rom 6 into 7.

---

<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:** [September 6, 2022, 9:09am UTC](https://discuss.elastic.co/t/elastic-upgrade-6-60-to-7-14-can-i-keep-the-index-with-old-mapping/311520/7 "2022-09-06T09:09:26Z")

</div>

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