如何在Solr中使用mongoDB? [英] How to use mongoDB with Solr?
本文介绍了如何在Solr中使用mongoDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以将数据从mongoDB复制到Solr?我正在使用ruby + sinatra + mongoid.还是我需要通过rsolr与after_create,after_update等挂钩?
Is it possible to replicate data from mongoDB to Solr? I'm using ruby + sinatra + mongoid. Or i need to make hooks with after_create, after_update and so on through rsolr?
推荐答案
10gen引入了Mongo Connector,它允许将数据推入Solr(以及其他)
10gen introduced Mongo Connector, which allows to push data into Solr (among others)
http://blog.mongodb.org/post/29127828146/introducing- mongo-connector
以他们的示例为例:
python mongo_connector.py -m localhost:27217 -t http://localhost:8080/solr
这篇关于如何在Solr中使用mongoDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文