# Upgrade Elasticsearch from 5.x to 6.x, then 6.x to 7.x

**URL:** https://discuss.elastic.co/t/upgrade-elasticsearch-from-5-x-to-6-x-then-6-x-to-7-x/115488
**Category:** Elasticsearch
**Created:** [January 15, 2018, 7:25am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-5-x-to-6-x-then-6-x-to-7-x/115488 "2018-01-15T07:25:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![shijiebei2009](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shijiebei2009/32/22000_2.png) [@shijiebei2009](https://discuss.elastic.co/u/shijiebei2009)
#### Post date: [January 15, 2018, 7:25am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-5-x-to-6-x-then-6-x-to-7-x/115488/1 "2018-01-15T07:25:45Z")

</div>

Lucene supports reading indexes with segments created with the last major version, so does elasticsearch.

As far as I know, if I upgrade my ES from 5.x to 6.x, then it can read indexes created by 5.x, so after that, I upgrade my ES from 6.x to 7.x, as the first line that I have indicated, it should be work too. am I right?

---

<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: [January 15, 2018, 7:42am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-5-x-to-6-x-then-6-x-to-7-x/115488/2 "2018-01-15T07:42:42Z")

</div>

Yes but only for indices that has been created with ES 6.x or where the indices have been rewritten in ES 6.x (with forcemerge for example).

But the upgrade assistant which is available in X-Pack Basic (free) should tell you that. Note it's not available yet for 6.x as ES 7.x is not ready 😛

---

<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: [February 12, 2018, 7:42am UTC](https://discuss.elastic.co/t/upgrade-elasticsearch-from-5-x-to-6-x-then-6-x-to-7-x/115488/3 "2018-02-12T07:42:45Z")

</div>

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