Module: CloudSesame::Query::DSL::Boost
- Included in:
- AST::MultiExpressionOperator, AST::SingleExpressionOperator
- Defined in:
- lib/cloud_sesame/query/dsl/boost.rb
Instance Method Summary collapse
- #boost(value) ⇒ Object (also: #weight)
- #compile_boost ⇒ Object
Instance Method Details
#boost(value) ⇒ Object Also known as: weight
10 11 12 13 |
# File 'lib/cloud_sesame/query/dsl/boost.rb', line 10 def boost(value) @boost = value.to_i return self end |
#compile_boost ⇒ Object
6 7 8 |
# File 'lib/cloud_sesame/query/dsl/boost.rb', line 6 def compile_boost " boost=#{ @boost }" if @boost end |