diff options
Diffstat (limited to 'lib/chef_zero/solr/query/unary_operator.rb')
-rw-r--r-- | lib/chef_zero/solr/query/unary_operator.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/chef_zero/solr/query/unary_operator.rb b/lib/chef_zero/solr/query/unary_operator.rb index fc46c0d..a873932 100644 --- a/lib/chef_zero/solr/query/unary_operator.rb +++ b/lib/chef_zero/solr/query/unary_operator.rb @@ -16,8 +16,7 @@ module ChefZero def matches_doc?(doc) case @operator - when '-' - when 'NOT' + when '-', 'NOT' !operand.matches_doc?(doc) when '+' # TODO This operator uses relevance to eliminate other, unrelated @@ -28,8 +27,7 @@ module ChefZero def matches_values?(values) case @operator - when '-' - when 'NOT' + when '-', 'NOT' !operand.matches_values?(values) when '+' # TODO This operator uses relevance to eliminate other, unrelated |