Commit b0af1b29bc5f77ae7dc80f53d3c093f0fd2b6b5b
1 parent
0e3636b4
Exists in
master
and in
21 other branches
Added test for boosting by decimal value - for #387
Showing
1 changed file
with
8 additions
and
0 deletions
Show diff stats
test/boost_test.rb
... | ... | @@ -75,6 +75,14 @@ class TestBoost < Minitest::Test |
75 | 75 | assert_order "red", ["Red", "White"], fields: ["name^10", "color"] |
76 | 76 | end |
77 | 77 | |
78 | + def test_boost_fields_decimal | |
79 | + store [ | |
80 | + {name: "Red", color: "White"}, | |
81 | + {name: "White", color: "Red Red Red"} | |
82 | + ] | |
83 | + assert_order "red", ["Red", "White"], fields: ["name^10.5", "color"] | |
84 | + end | |
85 | + | |
78 | 86 | def test_boost_fields_word_start |
79 | 87 | store [ |
80 | 88 | {name: "Red", color: "White"}, | ... | ... |