Repository is archived
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
integrate the elastic search engine with rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 0.10.0
= 0.9.2.2
= 2.11.3
= 1.3.5
= 0.9.6.2

Runtime

>= 1.0.0
>= 3.0.5
>= 2.0.0
>= 0.6.0
 Project Readme

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.