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 »

  1. 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.

  2. 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

  3. paly Said,

    June 7, 2010 @ 12:46 pm

    Hi Nick,

    Did you do the merge with Jake ?

    PALY

  4. 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

  5. Nick Lothian Said,

    June 17, 2010 @ 4:16 pm

    Yes, this code is in Lucandra

RSS feed for comments on this post

Leave a Comment

gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.