How to reindex ElasticSearch quickly?

血红的双手。 提交于 2019-12-04 05:48:25

Answered in the google groups:

Option A: Use bulk index operations.

Option B: Use the re-index plug-in that runs inside ES machine: https://github.com/karussell/elasticsearch-reindex

The proper way how to reindex with Elasticsearch is to use the scan and scroll APIs, which should be supported by Pyes.

It seems like the Pyes library has a reindex method, but I don't have experience with it.

(If you'd get over using Ruby over Python :), the Tire Ruby client has a Index#reindex method: https://github.com/karmi/tire/blob/master/test/integration/reindex_test.rb. It should be fast enough for your data.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!