Commit d64f0496bfdbdf4deef1104be6b389464aace4c8

Authored by Andrew Kane
1 parent 265e85e9

Improved synonyms section [skip ci]

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
README.md
... ... @@ -294,13 +294,17 @@ end
294 294 ```ruby
295 295 class Product < ActiveRecord::Base
296 296 searchkick synonyms: [["scallion", "green onion"], ["qtip", "cotton swab"]]
297   - # or
298   - # searchkick synonyms: -> { CSV.read("/some/path/synonyms.csv") }
299 297 end
300 298 ```
301 299  
302 300 Call `Product.reindex` after changing synonyms.
303 301  
  302 +To read synonyms from a file, use:
  303 +
  304 +```ruby
  305 +synonyms: -> { CSV.read("/some/path/synonyms.csv") }
  306 +```
  307 +
304 308 For directional synonyms, use:
305 309  
306 310 ```ruby
... ...