疲劳是最舒适的枕头,努力工作吧。

es 5.6 到 6.4 原多type的index数据迁移到单type的index怎么搞?

Elasticsearch | 作者 hhee | 发布于2019年06月21日 | 阅读数:1232

最近升级了,但是需要把之前5.x创建的数据转到新的index中,怎么搞?reindex?
已邀请:

fantuan

赞同来自:

升级前手动reindex到新索引,指定index里的某一type迁移到新的index。
POST _reindex { "source": { "index": ["twitter"], "type": ["tweet"] }, "dest": { "index": "twitter" } }
可参考:
https://www.elastic.co/guide/e ... .html
另外,5.6的es其实是可以直接滚动升级到6.x
具体步骤如下:
https://www.elastic.co/guide/e ... .html

 

要回复问题请先登录注册