Commit ef164323ed2cbaab2998311b6c7a25db50b1b9ec
1 parent
20265526
Exists in
master
and in
19 other branches
Added comment [skip ci]
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
lib/searchkick/query.rb
... | ... | @@ -424,9 +424,9 @@ module Searchkick |
424 | 424 | |
425 | 425 | if filters.any? || must_not.any? || should.any? |
426 | 426 | bool = {must: query} |
427 | - bool[:filter] = filters if filters.any? | |
428 | - bool[:must_not] = must_not if must_not.any? | |
429 | - bool[:should] = should if should.any? | |
427 | + bool[:filter] = filters if filters.any? # where | |
428 | + bool[:must_not] = must_not if must_not.any? # exclude | |
429 | + bool[:should] = should if should.any? # conversions | |
430 | 430 | query = {bool: bool} |
431 | 431 | end |
432 | 432 | ... | ... |