Commit b85fc84269255dcb430e3754913c1e471eaceed8
1 parent
b0af1b29
Exists in
master
and in
21 other branches
Allow decimal for boost - for #387
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/searchkick/query.rb
... | ... | @@ -28,7 +28,7 @@ module Searchkick |
28 | 28 | k, v = value.is_a?(Hash) ? value.to_a.first : [value, :word] |
29 | 29 | k2, boost = k.to_s.split("^", 2) |
30 | 30 | field = "#{k2}.#{v == :word ? "analyzed" : v}" |
31 | - boost_fields[field] = boost.to_i if boost | |
31 | + boost_fields[field] = boost.to_f if boost | |
32 | 32 | field |
33 | 33 | end |
34 | 34 | end | ... | ... |