Commit a6e52b17dbf8c0542b9bc82b1855ff7437524879
1 parent
ea27d530
Exists in
master
and in
21 other branches
Added synonyms to readme
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
README.md
@@ -19,8 +19,8 @@ class Book < ActiveRecord::Base | @@ -19,8 +19,8 @@ class Book < ActiveRecord::Base | ||
19 | include Tire::Model::Callbacks | 19 | include Tire::Model::Callbacks |
20 | 20 | ||
21 | tire do | 21 | tire do |
22 | - settings(Searchkick.settings) | ||
23 | - settings(number_of_shards: 1) # additional settings | 22 | + settings Searchkick.settings(synonyms: ["scallion => green onion"]) |
23 | + settings number_of_shards: 1 # additional settings | ||
24 | mapping do | 24 | mapping do |
25 | indexes :title, analyzer: "searchkick" | 25 | indexes :title, analyzer: "searchkick" |
26 | end | 26 | end |