How to import and index mongodb data in solr 4

后端 未结 2 1368
灰色年华
灰色年华 2021-01-20 17:39

I am new user to solr and mongodb. I have created the database and collection in mongodb.

Now i want to import and index that

相关标签:
2条回答
  • 2021-01-20 17:57

    did you tried the new solr-mongodb connector?

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

    https://github.com/10gen-labs/mongo-connector

    0 讨论(0)
  • 2021-01-20 18:05

    You have mentioned query="{'Active':1}" there is no document in stud collection with the field name Active

    You can follow the steps mentioned in Steps to connect MongoDB and Solr using DataImportHandler

    Hope it will be helpful.

    0 讨论(0)
提交回复
热议问题