Easy way to Sync Data between MongoDB and Apache Solr

后端 未结 3 1165
醉话见心
醉话见心 2021-02-09 10:01

I recently started working with MongoDB and Apache Solr. I am using MongoDB as a data store and I want Apache Solr to create index for my data for the search feature in my appli

相关标签:
3条回答
  • 2021-02-09 10:15

    Consider using mongoConnector. Check out http://blog.mongodb.org/post/29127828146/introducing-mongo-connector

    0 讨论(0)
  • 2021-02-09 10:22

    Hadoop is an option for creating SOLR indexes. I haven't done this first hand, but have heard from people such as etsy who are.

    On this course at lucene revolution they talked about using hadoop to update the indexes in some SOLR cores. Unfortunately I don't think the course material is publicly available.

    And at this talk the speaker talked about the mongo/hadoop support.

    Other related links:

    • Indexing Files via Solr and Java MapReduce
    • Using Hadoop to Create Solr Indexes
    • Mongo-Hadoop Connector
    0 讨论(0)
  • 2021-02-09 10:31

    Did you set the replica set mode? http://docs.mongodb.org/manual/reference/replica-configuration/

    In the beginning, I was getting the same output as you described although there were no data in Solr. After, I set up replication mode, it seems that oplog file was created and mongodbconnector was correctly synchronizing with SOLR. Works quite nicely for me.

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