Tuesday, 20 August 2013

How to import and index mongodb data in solr 4

How to import and index mongodb data in solr 4

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 mongodb
collection in solr for the application which is going to search large
amount of data in database. I have searched a lot on internet but,i did
not got satisfactory information. Can anyone tell how to do indexing in
solr wit steps ?
Following is my created collection: db.stud.find().pretty() { "_id" : 1,
"roll" : 59, "name" : "sachin", "class" : "MCA" } { "_id" : 2, "roll" :
57, "name" : "jay", "class" : "MCA" } { "_id" : 3, "roll" : 101, "name" :
"akash", "class" : "BCA" } { "_id" : 4, "roll" : 11, "name" : "amit",
"class" : "MCS" } { "_id" : 5, "roll" : 55, "name" : "shiv", "class" :
"MCA" }

No comments:

Post a Comment