Commit 2257e54eea4b3fbb86652917d596702bd2ad1f05
1 parent
b0c92d8b
Exists in
master
and in
21 other branches
Added stem_conversions: false option
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
CHANGELOG.md
lib/searchkick/reindex.rb
... | ... | @@ -91,7 +91,7 @@ module Searchkick |
91 | 91 | searchkick_keyword: { |
92 | 92 | type: "custom", |
93 | 93 | tokenizer: "keyword", |
94 | - filter: ["lowercase", "searchkick_stemmer"] | |
94 | + filter: ["lowercase"] + (options[:stem_conversions] == false ? [] : ["searchkick_stemmer"]) | |
95 | 95 | }, |
96 | 96 | default_index: { |
97 | 97 | type: "custom", | ... | ... |