0.0
No commit activity in last 3 years
No release in over 3 years
Rails 3 generator and rake tasks to install, start and interact with elasticsearch
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3.0
>= 0
 Project Readme

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.