Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Solandra = Solr + Cassandra
Java JavaScript Shell
branch: solandra

This branch is 1 commit ahead, 175 commits behind tjake:solandra

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
benchmark
resources
reuters-demo
schema
scripts
src
test
wikipedia-demo
.gitignore
LICENSE
README.md
build.xml
ivy.xml
ivysettings.xml

README.md

Solandra

Solandra is a real-time distributed search engine built on Apache Solr and Apache Cassandra.

At its core Solandra is a tight integration of Solr and Cassandra, meaning within a single JVM both Solr and Cassandra are running, and documents are stored and disributed using Cassandra's data model.

Solandra makes managing and dynamically growing Solr simple(r).

For more information please see the wiki

Requirements:

Java >= 1.6

Features:

  • Supports most out-of-the-box Solr functionality (search, faceting, highlights)
  • Replication, Sharding, Caching and Compaction managed by Cassandra
  • Multi-master (read/write to any node)
  • Writes become available as soon as write succeeds
  • Easily add new SolrCores w/o restart across the cluster

Getting started:

The following will guide you through setting up a single node instance of Solandra.

From the Solandra base directory:

mkdir /tmp/cassandra-data
ant
cd solandra-app; ./start-solandra.sh -b #(-b adds the solandra specific cassandra schema)

Now that Solandra is running you can run the demo:

cd ../../reuters-demo
./1-download_data.sh
./2-import_data.sh  
While data is loading open the file ./website/index.html in your favorite browser 

Embedding in an existing cassandra distribution

To use an existing cassandra distribution perform the following steps.

  1. Download your cassandra distribution
  2. Unzip it the directory of your choice
  3. Run the following solandra ant task to deploy the necessary files into the unzipped dir

    ant -Dcassandra={unzipped dir} cassandra-dist

  4. You can now start solr within cassandra by using $CASSANDRA_HOME/bin/solandra command. Cassandra now takes 2 optional properties -Dsolandra.context and -Dsolandra.port for the context path and the jetty port.

  5. You will need to add the solandra specific schema

    $CASSANDRA_HOME/bin/cassandra-cli --host localhost < resources/cassandra/solandra.cml

Limitations

Solandra uses Solr's built in distributed searching meachanism, most of it's limitations covered here:

http://wiki.apache.org/solr/DistributedSearch#Distributed_Searching_Limitations

Something went wrong with that request. Please try again.