gpt4 book ai didi

elasticsearch - 如何将Elasticsearch 1.x重新索引或迁移到5.x数据

转载 作者:行者123 更新时间:2023-12-03 00:59:01 24 4
gpt4 key购买 nike

我有旧数据的副本,即Elasticsearch 1.x,我想在Elasticsearch 5.x中迁移或重新索引。

有哪些方法和更好的方法?

最佳答案

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.



我建议通过查看此处遵循Elasticsearch的官方指南- https://www.elastic.co/guide/en/elasticsearch/reference/current/reindex-upgrade.html#reindex-upgrade-remote,它应该会对您有所帮助。

关于elasticsearch - 如何将Elasticsearch 1.x重新索引或迁移到5.x数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40608187/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com