原文地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/reindex-upgrade.html, 原文档版权归 www.elastic.co 所有
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Reindex before upgradingedit
Elasticsearch can read indices created in the previous major version. If you have indices created in 5.x or before, you must reindex or delete them before upgrading to 7.7.1. Elasticsearch nodes will fail to start if incompatible indices are present. Snapshots of 5.x or earlier indices cannot be restored to a 7.x cluster even if they were created by a 6.x cluster.
This restriction also applies to the internal indices that are used by Kibana and the X-Pack features. Therefore, before you can use Kibana and X-Pack features in 7.7.1, you must ensure the internal indices have a compatible index structure.
You have two options for reindexing old indices:
- Reindex in place on your 6.x cluster before upgrading.
- Create a new 7.7.1 cluster and Reindex from remote. This enables you to reindex indices that reside on clusters running any version of Elasticsearch.