elastic将数据从solr迁移到弹性搜索



将Solr内核迁移到弹性搜索索引的最佳方法是什么?

solr-river-plugin (https://github.com/javanna/elasticsearch-river-solr)已弃用。

有一个很好的专门的Python工具,由开源连接的好心人制作,你可以用它来做这件事:

https://github.com/o19s/solr-to-es

仅仅

./solr-to-es solr_url elasticsearch_url elasticsearch_index doc_type

例如,下面的命令将遍历本地Solr节点上的所有文档,命名为node,并将它们提交到索引my_index中的本地Elasticsearch服务器,文档类型为my_type

./solr-to-es.py localhost:8983/solr/node localhost:9200 my_index my_type

最新更新