class Sunspot::Query::Restriction::AnyOf
Results must have field with value included in given collection
Public Instance Methods
negated?()
click to toggle source
Calls superclass method
# File lib/sunspot/query/restriction.rb, line 305 def negated? if @value.empty? false else super end end
Private Instance Methods
to_solr_conditional()
click to toggle source
# File lib/sunspot/query/restriction.rb, line 315 def to_solr_conditional if @value.empty? "[* TO *]" else "(#{@value.map { |v| solr_value v } * ' OR '})" end end