Commit 1cc40079b58308730f684fa51cbf08779b59848b
1 parent
1fb35cc0
Exists in
master
and in
19 other branches
No longer require synonyms to be lowercase - #912
Showing
4 changed files
with
8 additions
and
1 deletions
Show diff stats
CHANGELOG.md
lib/searchkick/index_options.rb
... | ... | @@ -167,7 +167,7 @@ module Searchkick |
167 | 167 | if synonyms.any? |
168 | 168 | settings[:analysis][:filter][:searchkick_synonym] = { |
169 | 169 | type: "synonym", |
170 | - synonyms: synonyms.select { |s| s.size > 1 }.map { |s| s.is_a?(Array) ? s.join(",") : s } | |
170 | + synonyms: synonyms.select { |s| s.size > 1 }.map { |s| s.is_a?(Array) ? s.join(",") : s }.map(&:downcase) | |
171 | 171 | } |
172 | 172 | # choosing a place for the synonym filter when stemming is not easy |
173 | 173 | # https://groups.google.com/forum/#!topic/elasticsearch/p7qcQlgHdB8 | ... | ... |
test/synonyms_test.rb
test/test_helper.rb