class Sunspot::Query::Restriction::GreaterThan

Results must have field with value greater than given value

Private Instance Methods

solr_value(value = @value) click to toggle source
Calls superclass method
# File lib/sunspot/query/restriction.rb, line 255
def solr_value(value = @value)
  solr_value = super
  solr_value = "\"#{solr_value}\"" if solr_value.index(' ')
  solr_value
end
to_solr_conditional() click to toggle source
# File lib/sunspot/query/restriction.rb, line 261
def to_solr_conditional
  "{#{solr_value} TO *}"
end