How to use mongoDB with Solr?

后端 未结 4 1724
孤城傲影
孤城傲影 2020-12-25 09:55

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?<

4条回答
  •  盖世英雄少女心
    2020-12-25 10:27

    10gen introduced Mongo Connector, which allows to push data into Solr (among others)

    http://blog.mongodb.org/post/29127828146/introducing-mongo-connector

    From their example:

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

提交回复
热议问题