Solr+Cassandra
October 27, 2009 @ 8:15 pm · Filed under java, tech
I’ve been a big fan of Solr for quite a long time, and have used it extensively at work.
I noticed a few weeks ago that Jake Luciani had managed to get Lucene (which Solr uses) working on Cassandra (Facebook’s highly scalable keystore).
The next step had an obvious name: Solandra – Solr running on Cassandra.
Basically there wasn’t too much to getting it going in the limited form it is now – a few minor changes to Jake’s Lucandra code, a custom Solr FieldType (exactly why I needed this I’m unsure) and correctly configured solrconfig.xml and schema.xml files.
I haven’t tested updates, so you’ll probably need Jake’s BookmarkDemo to load data in.
My changes to the Lucandra index reader include hard coding (!) the fields returned by getFieldNames(..) to match the Solr schema and the fields added in the demo.
If anyone is interested, the code is available: solandra.zip. You’ll need to be a Java developer to use it, though.
Permalink
5 Comments »
RSS feed for comments on this post
Leave a Comment
Lalit Shandilya Said,
October 28, 2009 @ 5:30 am
Thanks for posting this.
It would be really great if you could post the solandra.zip code on github.
Nick Lothian Said,
October 28, 2009 @ 7:45 am
Yeah, I’ll probably do that. I’m talking to Jake about merging my changes into his code
paly Said,
June 7, 2010 @ 12:46 pm
Hi Nick,
Did you do the merge with Jake ?
PALY
Sam Said,
June 8, 2010 @ 3:48 pm
Hello,
Has there been any additional work done with this and has the code been committed and freely available?
Thanks
Nick Lothian Said,
June 17, 2010 @ 4:16 pm
Yes, this code is in Lucandra