How to use mongoDB with Solr?

后端 未结 4 1717
孤城傲影
孤城傲影 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:30

    I am not sure whether its too late. The mongo-jdbc would not work with DIH of Apache Solr, you would need to extend it. I have extended it, and you can use it from here: https://github.com/hrishik/solr-mongodb-dih

    You can directly use it with Apache Solr. In that case, DIH config file will look something like below:

        
        
        
        
            
             
            
        
         
    
    

提交回复
热议问题