Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
From zero to search in the flash of a gem.
XSLT JavaScript Java Ruby CSS
tree: 7a6aea0bd0

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
.gitignore
Gemfile
Gemfile.lock
Jarfile
Jarfile.lock
LICENSE
README.md
Rakefile
VERSION
pom.xml

README.md

Solr Sail

From zero to search in the flash of a gem.

Install

For Ruby

gem install solr_sail

For Java

<dependency>
  <groupId>com.tobedevoured</groupId>
  <artifactId>solrsail</artifactId>
  <version>0.0.2</version>
</dependency>

Usage

From the command line

The solr_sail gem comes with the executable solrsail which makes it easy to setup and start a Solr Server.

Setup Solr

To create a config directory in the default path of solr, simply run:

solrsail install

To change the directory, you can pass --solr_home or -h:

solrsail install -h new/path/to/solr

If you want to make changes to how the Solr Server runs, you can edit the conf solr_sail.conf under the installed Solr home. An example solr_sail.conf:

solr_sail.solr.port=8983
solr_sail.solr.contextpath=/solr

Start up Solr

solrsail start

To change the directory of the Solr home, you can pass --solr_home or -h:

solrsail start -h new/path/to/solr

From Ruby

Setup Solr

To create a config directory

require 'rubygems'
require 'solr_sail'

SolrSail.install_config()

Start up Solr

require 'rubygems'
require 'solr_sail'

SolrSail.start()
Something went wrong with that request. Please try again.