Results must have field with value equal to given value. If the value is nil, results must have no value for the given field.
# File lib/sunspot/query/restriction.rb, line 185 def negated? if @value.nil? !super else super end end
# File lib/sunspot/query/restriction.rb, line 177 def to_positive_boolean_phrase unless @value.nil? super else "#{Util.escape(@field.indexed_name)}:[* TO *]" end end