Commit 722dca93f3a6c8bede175ce47ff36ef507836813
1 parent
2f1ae13e
Exists in
master
and in
5 other branches
Better stemming example [skip ci]
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
README.md
... | ... | @@ -301,7 +301,7 @@ User.search "fresh honey", match: :phrase |
301 | 301 | |
302 | 302 | ### Stemming and Language |
303 | 303 | |
304 | -Searchkick stems words by default for better matching. `tomatoes` and `tomato` both stem to `tomato`, so searches for either term will have the same matches. | |
304 | +Searchkick stems words by default for better matching. `apple` and `apples` both stem to `appl`, so searches for either term will have the same matches. | |
305 | 305 | |
306 | 306 | Searchkick defaults to English for stemming. To change this, use: |
307 | 307 | |
... | ... | @@ -334,7 +334,7 @@ Specify certain words to be excluded from stemming: [unreleased] |
334 | 334 | |
335 | 335 | ```ruby |
336 | 336 | class Image < ApplicationRecord |
337 | - searchkick stem_exclusion: ["tomatoes"] | |
337 | + searchkick stem_exclusion: ["apples"] | |
338 | 338 | end |
339 | 339 | ``` |
340 | 340 | |
... | ... | @@ -342,7 +342,7 @@ Or change how words are stemmed: [unreleased] |
342 | 342 | |
343 | 343 | ```ruby |
344 | 344 | class Image < ApplicationRecord |
345 | - searchkick stemmer_override: ["tomatoes => other"] | |
345 | + searchkick stemmer_override: ["apples => other"] | |
346 | 346 | end |
347 | 347 | ``` |
348 | 348 | ... | ... |