Commit 10265429ab1abeb550ab9d46e4655404a96669f8

Authored by Andrew
1 parent ffa3f794

Fixed tests for ES5, take 2

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
lib/searchkick/index_options.rb
... ... @@ -190,6 +190,7 @@ module Searchkick
190 190 # - Only apply the synonym expansion at index time
191 191 # - Don't have the synonym filter applied search
192 192 # - Use directional synonyms where appropriate. You want to make sure that you're not injecting terms that are too general.
  193 + settings[:analysis][:analyzer][default_analyzer][:filter].insert(4, "searchkick_synonym") if below60
193 194 settings[:analysis][:analyzer][default_analyzer][:filter] << "searchkick_synonym"
194 195  
195 196 %w(word_start word_middle word_end).each do |type|
... ...