如何在 Solr 中使用 mongoDB? [英] How to use mongoDB with Solr?

查看:26
本文介绍了如何在 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 连接器

来自他们的例子:

python mongo_connector.py -m localhost:27217 -t http://localhost:8080/solr

这篇关于如何在 Solr 中使用 mongoDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆