# Upgrade from 1.7.2 to 5.4.0

**URL:** <https://discuss.elastic.co/t/upgrade-from-1-7-2-to-5-4-0/90377>\
**Category:** Elasticsearch\
**Created:** [June 22, 2017, 2:05am UTC](https://discuss.elastic.co/t/upgrade-from-1-7-2-to-5-4-0/90377 "2017-06-22T02:05:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![itplayer](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Post date:** [June 22, 2017, 2:05am UTC](https://discuss.elastic.co/t/upgrade-from-1-7-2-to-5-4-0/90377/1 "2017-06-22T02:05:07Z")

</div>

Hi there,  
I have lots of indices that created and pump lots of data in v1.7.2. We are going to upgrade to 5.4.0 recently, I wonder do we have any solution that smoothly migrate data to new version?

My concern is:  
Indexed documents were not enabled \_source, can we still use solution guide here  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade.html)

Upgrading with reindexing from remote?

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [June 22, 2017, 2:41am UTC](https://discuss.elastic.co/t/upgrade-from-1-7-2-to-5-4-0/90377/2 "2017-06-22T02:41:59Z")

</div>

Without `_source`, you cannot use the Reindex API. And without the reindex API, you cannot hope to do a one-shot, in-place migration from 1.7 to 5.4, as the Lucene data structures of the 1.7 indices are not compatible.

You _may_ be able to go to 2.x, add and remove a document, do a forceMerge, and force the segments to a newer format, then do an in-place upgrade to 5.x. I say _may_ because I'm still not 100% this can be done.

Not having `_source` has kind of hamstrung your upgrade path.

---

<div class="post-metadata">

**Author:** ![itplayer](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@itplayer](https://discuss.elastic.co/u/itplayer)\
**Post date:** [June 23, 2017, 7:26am UTC](https://discuss.elastic.co/t/upgrade-from-1-7-2-to-5-4-0/90377/3 "2017-06-23T07:26:45Z")

</div>

Thanks, I'll try your solution. Hope that help.  
The worst case is...I have to drop those indices.

---

<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 21, 2017, 7:33am UTC](https://discuss.elastic.co/t/upgrade-from-1-7-2-to-5-4-0/90377/4 "2017-07-21T07:33:44Z")

</div>

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