I have copy of old data i.e. Elasticsearch 1.x, I want to migrate or reindex in Elasticsearch 5.x.
what are the methods and better way to do this ?
I have copy of old data i.e. 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.