README.md in elasticsearch_autocomplete-0.1.4 vs README.md in elasticsearch_autocomplete-0.1.5
- old
+ new
@@ -1,11 +1,12 @@
# ElasticsearchAutocomplete
-Simple autocomplete for rails models using awesome [Elasticsearch](http://www.elasticsearch.org/) and [tire](https://github.com/karmi/tire) gem
-
[![Build Status](https://travis-ci.org/leschenko/elasticsearch_autocomplete.png?branch=master)](https://travis-ci.org/leschenko/elasticsearch_autocomplete)
+[![Dependency Status](https://gemnasium.com/leschenko/elasticsearch_autocomplete.png)](https://gemnasium.com/leschenko/elasticsearch_autocomplete)
+Simple autocomplete for rails models using awesome [Elasticsearch](http://www.elasticsearch.org/).
+
## Example app
Look at ElasticsearchAutocomplete [example app](https://github.com/leschenko/example_elasticsearch_autocomplete)
## Installation
@@ -49,26 +50,26 @@
You can specify fields for suggestions search:
```ruby
class User < ActiveRecord::Base
- ac_field :full_name, :search_fields => [:full_name, :email]
+ ac_field :full_name, search_fields: [:full_name, :email]
end
```
For search on localized fields such as `name_en`, `name_ru`:
```ruby
class Product < ActiveRecord::Base
- ac_field :name, :localized => true
+ ac_field :name, localized: true
end
```
If you want to define settings and mapping for elasticsearch index yourselves:
```ruby
class Product < ActiveRecord::Base
- ac_field :name, :skip_settings => true
+ ac_field :name, skip_settings: true
end
```
## Contributing