README.md in elasticsearch_autocomplete-0.0.2 vs README.md in elasticsearch_autocomplete-0.0.3
- old
+ new
@@ -1,8 +1,8 @@
# ElasticsearchAutocomplete
-Simple autocomplete for rails models using awesome elasticsearch and tire gem
+Simple autocomplete for rails models using awesome [Elasticsearch](http://www.elasticsearch.org/) and [tire](https://github.com/karmi/tire) gem
## Installation
Add this line to your application's Gemfile:
@@ -22,9 +22,15 @@
```ruby
class User < ActiveRecord::Base
ac_field :full_name
end
+```
+
+Don't forget to rebuild elasticsearch index:
+
+```bash
+ $ rake environment tire:import CLASS='User' FORCE=true
```
To find suggestions call `ac_search` method on your model. It return `Tire::Results::Collection` instance:
```ruby