Project

solr_sail

0.0
No release in over 3 years
Low commit activity in last 3 years
From zero to search in the flash of a gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.8.4
~> 1.0.0
~> 2.11.0
>= 0
~> 1.1.4

Runtime

~> 0.6.0
> 0.14.0
 Project Readme

Solr Sail

From zero to search in the flash of a gem.

Install

For JRuby

gem install solr_sail

For Java

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

May have to add the Sonatype Repo if the sync to Maven Central is slow.

<repositories>
  <repository>
    <id>oss.sonatype.org</id>
    <name>Sonatype Repository</name>
    <url>https://oss.sonatype.org/content/groups/public</url>
  </repository>
</repositories>

Usage

From the command line

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

Setup Solr

To create a config directory to run Solr from, 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. Presently only port and contentpath are configurable. 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

For JRuby

Setup Solr

To create a config directory for Solr to run from

require 'rubygems'
require 'solr_sail'

SolrSail.install_config()

Start up Solr

require 'rubygems'
require 'solr_sail'

SolrSail.start()