Commit a6e52b17dbf8c0542b9bc82b1855ff7437524879

Authored by Andrew Kane
1 parent ea27d530

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 19 include Tire::Model::Callbacks
20 20  
21 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 24 mapping do
25 25 indexes :title, analyzer: "searchkick"
26 26 end
... ...