Commit 941b7ed3d79354a94ed536fc45c3aba8c808dc02
1 parent
4e8cbc33
Exists in
master
and in
21 other branches
Added support for any where conditions with boost where - for #439
Showing
2 changed files
with
4 additions
and
1 deletions
Show diff stats
lib/searchkick/query.rb
test/boost_test.rb
... | ... | @@ -108,6 +108,7 @@ class TestBoost < Minitest::Test |
108 | 108 | {name: "Tomato C", user_ids: [3]} |
109 | 109 | ] |
110 | 110 | assert_first "tomato", "Tomato B", boost_where: {user_ids: 2} |
111 | + assert_first "tomato", "Tomato B", boost_where: {user_ids: 1..2} | |
111 | 112 | assert_first "tomato", "Tomato B", boost_where: {user_ids: [1, 4]} |
112 | 113 | assert_first "tomato", "Tomato B", boost_where: {user_ids: {value: 2, factor: 10}} |
113 | 114 | assert_first "tomato", "Tomato B", boost_where: {user_ids: {value: [1, 4], factor: 10}} | ... | ... |