class Sunspot::Query::ConstantFunctionQuery
Function query which represents a constant.
Public Class Methods
new(constant)
click to toggle source
# File lib/sunspot/query/function_query.rb, line 18 def initialize(constant) @constant = constant end
Public Instance Methods
to_s()
click to toggle source
# File lib/sunspot/query/function_query.rb, line 22 def to_s Type.to_literal(@constant) << (@boost_amount ? "^#{@boost_amount}" : "") end