Commit 4c4c4bf5aecbaf20963cc1a7adc1def01a5806e5
1 parent
182c82e9
Exists in
master
and in
21 other branches
Fixed tests
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/query.rb
@@ -23,7 +23,7 @@ module Searchkick | @@ -23,7 +23,7 @@ module Searchkick | ||
23 | else | 23 | else |
24 | options[:fields].map do |value| | 24 | options[:fields].map do |value| |
25 | k, v = value.is_a?(Hash) ? value.to_a.first : [value, :word] | 25 | k, v = value.is_a?(Hash) ? value.to_a.first : [value, :word] |
26 | - k2, boost = k.split("^", 2) | 26 | + k2, boost = k.to_s.split("^", 2) |
27 | field = "#{k2}.#{v == :word ? "analyzed" : v}" | 27 | field = "#{k2}.#{v == :word ? "analyzed" : v}" |
28 | boost_fields[field] = boost.to_i if boost | 28 | boost_fields[field] = boost.to_i if boost |
29 | field | 29 | field |