Indexing MongoDB Data in Apache Solr

Feb 3, 2017 11:09:34 AM by Deepak Vohra


This is a companion discussion topic for the original entry at https://blog.toadworld.com/2017/02/03/indexing-mongodb-data-in-apache-solr

Hi,

I am facing serverselectiontimeouterror pymongo error, even after following the steps. Could you suggest some solution ?

Regards,
Sudarshan

Are the same versions for Apache Solr and MongoDB used? Please post detailed error message.

Hi,

I want to index fields from different mongo collections as single document in solr using mongo connector. After following the steps mentioned above for each id one document has been created in solr. So how to collect fields from different collection and to make one single document on solr?

The mongo connector only indexes from one collection at a time. To aggregate fields from different documents, first create a new collection with fields from different collections and index the collection as asingle document.