Mama Search

Mama Search is a Rails 3 generator to install elasticsearch. It also includes Rake tasks for starting elasticsearch.

Installation

Add mama search to your Gemfile:


gem 'mama_search'

Use bundler to install it:


bundle install

Run the generator to install elasticsearch (currently version 0.14.2) in your app:


rails g mama_search:install

This installs the following directories and files:

  • elasticsearch/server/ # elasticsearch server
  • config/elasticsearch.yml # app configuration
  • config/initializers/elasticsearch.rb # elasticsearch connection object setup

Rake tasks


rake es:start

Start elasticsearch. Elasticsearch is run in the foreground and should be stopped via Ctrl+C.

Issues

  • The default elasticsearch executable makes it hard to move config files out of the project root, so configuration stays in elasticsearch/server/config for now
  • Rubberband tries to autodiscover nodes immediately. Until this is changed, the global client in the initializer should remain commented.

Credits

Mama Search is heavily inspired by Mama Cass

LICENSE

Released under the MIT License. See the LICENSE file for further details.