Commit 999dcd99cb85579ccfbff3b3b7362e5a10964f2c
1 parent
2e750b98
Exists in
master
and in
19 other branches
Do not stem conversions by default anymore [skip ci]
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
CHANGELOG.md
... | ... | @@ -11,6 +11,7 @@ |
11 | 11 | - Removed `unscoped_reindex_job` option (always `true` now) |
12 | 12 | - Removed `Model.enable_search_callbacks`, `Model.disable_search_callbacks`, and `Model.search_callbacks?` |
13 | 13 | - Removed `async` option from `record.reindex` - use `mode: :async` instead |
14 | +- Conversions are not stemmed by default - use `stem_conversion: true` to enable this | |
14 | 15 | |
15 | 16 | ## 2.5.1 [unreleased] |
16 | 17 | ... | ... |
lib/searchkick/index_options.rb
... | ... | @@ -28,7 +28,7 @@ module Searchkick |
28 | 28 | searchkick_keyword: { |
29 | 29 | type: "custom", |
30 | 30 | tokenizer: "keyword", |
31 | - filter: ["lowercase"] + (options[:stem_conversions] == false ? [] : ["searchkick_stemmer"]) | |
31 | + filter: ["lowercase"] + (options[:stem_conversions] ? ["searchkick_stemmer"] : []) | |
32 | 32 | }, |
33 | 33 | default_analyzer => { |
34 | 34 | type: "custom", | ... | ... |