diff --git a/lib/searchkick/query.rb b/lib/searchkick/query.rb index 95d5a0b..ccb9ae1 100644 --- a/lib/searchkick/query.rb +++ b/lib/searchkick/query.rb @@ -335,7 +335,7 @@ module Searchkick if field.start_with?("*.") q2 = qs.map { |q| {multi_match: q.merge(fields: [field], type: match_type == :match_phrase ? "phrase" : "best_fields")} } - if below60? + if below61? q2.each do |q| q[:multi_match].delete(:fuzzy_transpositions) end @@ -989,5 +989,9 @@ module Searchkick def below60? Searchkick.server_below?("6.0.0-alpha1") end + + def below61? + Searchkick.server_below?("6.1.0-alpha1") + end end end -- libgit2 0.21.0