Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Solr for indexing and search with Mongodb and nodejs

Does anyone have any experience with this particular stack? I'm working on a web project that will eventually contain an extremely large amount of data and was trying to get Solr to play nicely with some simple Mongodb entries but I have found little to no information about it. I found this: http://blog.knuthaugen.no/2010/04/cooking-with-mongodb-and-solr.html which is mongodb + solr + php, but I'm struggling to see how I would use node similarly. Anybody have any insight? I'd greatly appreciate it. If this is a dumb thing to try to implement, feel free to let me know as well!

Found this library: https://github.com/tjgillies/node-lucene

Doesn't look like there is much documentation there but I'll give it a go.

Update: So a quick fix (not ideal) that worked was to use a Perl module for lucene and then using the child process functionality in Node.js, I was able to insert and search for my data inside of lucene. So for a workaround, it does the trick.

like image 561
Alex Roe Avatar asked Jun 22 '12 16:06

Alex Roe


1 Answers

Probably as of Sep 2012, you would want to take a look at this.

https://github.com/lbdremy/solr-node-client

Good documentations http://lbdremy.github.com/solr-node-client/ (though I didnt liked the web fonts used) but seems VERY promising.

like image 89
Hitesh Joshi Avatar answered Oct 10 '22 09:10

Hitesh Joshi