lucene/client/ruby/solrb
Erik Hatcher f06086ede6 Cosmetic change to gem summary
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@496203 13f79535-47bb-0310-9956-ffa450edef68
2007-01-15 01:44:37 +00:00
..
lib Modeled Solr's StandardRequestHandler (qt=standard) as Solr::Request::Standard (includes common, standard, and facet parameters, but not highlighting parameters). 2007-01-15 01:41:18 +00:00
solr Move solr installation from flare to solrb 2007-01-03 13:53:10 +00:00
test Modeled Solr's StandardRequestHandler (qt=standard) as Solr::Request::Standard (includes common, standard, and facet parameters, but not highlighting parameters). 2007-01-15 01:41:18 +00:00
Changes sooner rather than later, tease the Solr DSL out from the web framework 2007-01-03 04:57:00 +00:00
README sooner rather than later, tease the Solr DSL out from the web framework 2007-01-03 04:57:00 +00:00
Rakefile Cosmetic change to gem summary 2007-01-15 01:44:37 +00:00

README

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

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

USAGE 

First launch Solr.

In a separate shell, launch script/console.

# Set up a connection to Solr:

  connection = Solr::Connection.new("http://localhost:8983")

# To add a document:

  doc = {:id => "529", :text => "Solr Flare in Action"}
  request = Solr::AddDocumentRequest.new(doc)
  connection.send(request)

# Commit changes:

  request = Solr::UpdateRequest.new("<commit/>")  # TODO: yes, this will be mapped as a simpler command!
  connection.send(request)

# Search:

  request = Solr::StandardRequest.new  
  request.query = "solr flare"
  connection.send(request)



INSTALLATION

First run the tests:

  rake test

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>