Class: Sunspot::Query::FunctionQuery
- Inherits:
-
Object
- Object
- Sunspot::Query::FunctionQuery
- Defined in:
- lib/sunspot/query/function_query.rb
Overview
Abstract class for function queries.
Direct Known Subclasses
ConstantFunctionQuery, FieldFunctionQuery, FunctionalFunctionQuery
Instance Attribute Summary collapse
-
#boost_amount ⇒ Object
readonly
Returns the value of attribute boost_amount.
Instance Method Summary collapse
Instance Attribute Details
#boost_amount ⇒ Object (readonly)
Returns the value of attribute boost_amount.
7 8 9 |
# File 'lib/sunspot/query/function_query.rb', line 7 def boost_amount @boost_amount end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/sunspot/query/function_query.rb', line 14 def ==(other) @boost_amount == other.boost_amount end |
#^(y) ⇒ Object
9 10 11 12 |
# File 'lib/sunspot/query/function_query.rb', line 9 def ^(y) @boost_amount = y self end |