TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'elasticsearch-model-extensions'
And then execute:
$ bundle
Or install it yourself as:
$ gem install elasticsearch-model-extensions
TODO: Write usage instructions here
With Elasticsearch installed, you can run examples configured with an ES instance started on the port 9250 and AR connected to sqlite:
$ bundle exec irb -I spec -r example/articles_with_comments
(A bunch of log output here)
irb(main):001:0> Article.search('Comment1')
To run the same example with Rails 4.1.x:
$ BUNDLE_GEMFILE=gemfiles/rails41.gemfile bundle exec irb -I spec -r example/articles_with_comments
- Fork it ( https://github.com/[my-github-username]/elasticsearch-model-extensions/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request