solrb exposes the power of Solr as a Ruby  DSL (domain specific language).

  Visit the solrb wiki for more information: http://wiki.apache.org/solr/solrb

USAGE 

First launch Solr.

   cd solr
   java -jar start.jar

In a separate shell, launch irb -Ilib.

# Bring in the Solr library
  require 'solr'

# Set up a connection to Solr:

  connection = Solr::Connection.new 'http://localhost:8983/solr'

# To add a document:

  doc = Solr::Document.new :id => '529', :text => 'Solr Flare in Action'
  request = Solr::Request::AddDocument.new(doc)
  connection.send(request)
  
# Commit changes:

  connection.commit

# Search:

  request = Solr::Request::Standard.new :query => 'solr flare'
  connection.send(request)


INSTALLATION

First run the tests:

  rake
  
then build the gem:

  rake package

and install the versioned gem:

  gem install pkg/solr-x.x.x.gem 

LICENSE

This package is licensed using the Apache Software License 2.0.

<http://www.apache.org/licenses/LICENSE-2.0>