Add elasticsearch realtime indexing to your Rails application
Ruby
Latest commit 1662949 Jan 22, 2013 @wireframe wireframe bump version
Permalink
Failed to load latest commit information.
lib bump version Jan 22, 2013
test
.document Initial commit to elastic_searchable. Jan 25, 2011
.gitignore add ignores Apr 13, 2011
.rvmrc promote index level operations off of model and into ElasticSearchabl… Jan 23, 2012
.travis.yml add travis config Apr 24, 2012
CONTRIBUTORS.txt update license Apr 21, 2011
Gemfile remove unneeded gem Apr 15, 2011
LICENSE.txt update license Apr 21, 2011
README.md add travis config Apr 24, 2012
Rakefile cherry pick rails3 Apr 13, 2011
elastic_searchable.gemspec update to backgrounded 2.x API Sep 26, 2012

README.md

Build Statushttp://travis-ci.org/#!/socialcast/elastic_searchable

elastic_searchable

Integrate the elasticsearch library into Rails.

Usage

class Blog < ActiveRecord::Base
  elastic_searchable
end

results = Blog.search 'foo'

Features

  • fast. fast! FAST! 30% faster than rubberband on average.
  • active record callbacks automatically keep search index up to date as your data changes
  • out of the box background indexing of data using backgrounded. Don't lock up a foreground process waiting on a background job!
  • integrates with will_paginate library for easy pagination of search results

Installation

# Bundler Gemfile
gem 'elastic_searchable'

Configuration

# config/initializers/elastic_searchable.rb
# (optional) customize elasticsearch host
# default is localhost:9200
ElasticSearchable.base_uri 'server:9200'

# (optional) customize elasticsearch paginator
# default is ElasticSearchable::Pagination::WillPaginate
ElasticSearchable::Paginator.handler = ElasticSearchable::Pagination::Kaminari

Contributing

  • Fork the project
  • Fix the issue
  • Add unit tests
  • Submit pull request on github

See CONTRIBUTORS.txt for list of project contributors

Copyright

Copyright (c) 2011 Socialcast, Inc. See LICENSE.txt for further details.