简体   繁体   中英

How to reindex or migrate elasticsearch 1.x to 5.x data

I have copy of old data ie Elasticsearch 1.x, I want to migrate or reindex in Elasticsearch 5.x.

what are the methods and better way to do this ?

Elasticsearch is able to use indices created in the previous major version only. For instance, Elasticsearch 5.x can use indices created in Elasticsearch 2.x, but not those created in Elasticsearch 1.x or before.

If you are running an Elasticsearch 2.x cluster which contains indices that were created before 2.x, you will either need to delete those old indices or to reindex them before upgrading to 5.x. See Reindex in place.

If you are running an Elasticsearch 1.x cluster, you have two options:

First upgrade to Elasticsearch 2.4.x, reindex the old indices, then upgrade to 5.x.

I would recommend to follow official guide from Elasticsearch by looking here - https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade.html#reindex-upgrade-remote , which should help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM