Do I have to reindex v5 indices for an upgrade to v6?


(juiip) #1

I'm wondering whether the reindexing step is actually necessary for my upgrade of Elasticsearch to v6.
My indices are time-based, and after a few weeks get deleted, so if Elasticserach v6 can still read v5 indices it seems pointless to reindex them, and rather just move them into a v6 cluster. In the meantime, new indices will be created in v6 format with a single type, and v5 indices will gradually get phased out.
Is this possible/recommended?


(Tim Vernum) #2

Yes, this is fine.
You only need to reindex if you have indices from the previous major (2.x in this case).
If you exclusively use time based indices, and delete indices past a certain age, then you can keep doing rolling upgrades for each major release.

But watch out for any separate, non-time-based indices you might have (.kibana, etc).


(juiip) #3

Thanks for your response.
Does Elasticsearch 6 allow you to upload documents into both v5 and v6 index formats?


(Emanuil Tolev) #4

If you're using the HTTP API, then from your point of view you're always sending the same document into Elasticsearch. The way it's stored internally changes between different major versions. That's why you have to reindex going from 2.x to 6.x - it can't read its own "internal" files. But you would have sent the exact same JSON to a 2.x cluster as you would to a 6.x cluster.


(system) #5

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