将数据从Solr迁移到弹性搜索 [英] Migrating data from solr to elastic search
问题描述
将Solr核心迁移到弹性搜索索引的最佳方法是什么?
What would be the best way to migrate Solr cores to elastic search indices ?
solr-river-plugin( https://github.com/javanna/elasticsearch-river-solr )。
The solr-river-plugin (https://github.com/javanna/elasticsearch-river-solr) is deprecated.
推荐答案
OpenSource Connections的一个不错的人用爱制作了一个不错的即兴Python工具,您可以用来执行此操作:
There's a nice adhoc Python tool made with love by the nice folks at OpenSource Connections that you can use to do this:
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
。
For instance, the command below will page through all documents on the local Solr node, named node
, and submit them to the local Elasticsearch server in the index my_index
with a document type of my_type
.
./solr-to-es.py localhost:8983/solr/node localhost:9200 my_index my_type
这篇关于将数据从Solr迁移到弹性搜索的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!