将 Solr 核心迁移到 Elasticsearch 索引的最佳方法是什么?
solr-river-plugin ( https://github.com/javanna/elasticsearch-river-solr ) 已弃用。
最佳答案
有一个很好的临时 Python 工具,由 OpenSource Connections 的好人们用爱制作,您可以使用它来执行此操作:
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
关于search - 将数据从 solr 迁移到 elasticsearch,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40527338/