Class: Solr::Query::Request::Boosting::ScaleFunctionBoost
- Inherits:
-
Object
- Object
- Solr::Query::Request::Boosting::ScaleFunctionBoost
- Includes:
- Support::SchemaHelper
- Defined in:
- lib/solr/query/request/boosting/scale_function_boost.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
Instance Method Summary collapse
-
#initialize(field:, min:, max:) ⇒ ScaleFunctionBoost
constructor
A new instance of ScaleFunctionBoost.
- #solr_field ⇒ Object
- #to_solr_s ⇒ Object
Methods included from Support::SchemaHelper
Constructor Details
#initialize(field:, min:, max:) ⇒ ScaleFunctionBoost
Returns a new instance of ScaleFunctionBoost.
10 11 12 13 14 15 |
# File 'lib/solr/query/request/boosting/scale_function_boost.rb', line 10 def initialize(field:, min:, max:) @field = field @min = min @max = max freeze end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
8 9 10 |
# File 'lib/solr/query/request/boosting/scale_function_boost.rb', line 8 def field @field end |
#max ⇒ Object (readonly)
Returns the value of attribute max.
8 9 10 |
# File 'lib/solr/query/request/boosting/scale_function_boost.rb', line 8 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
8 9 10 |
# File 'lib/solr/query/request/boosting/scale_function_boost.rb', line 8 def min @min end |
Instance Method Details
#solr_field ⇒ Object
21 22 23 |
# File 'lib/solr/query/request/boosting/scale_function_boost.rb', line 21 def solr_field solarize_field(field) end |
#to_solr_s ⇒ Object
17 18 19 |
# File 'lib/solr/query/request/boosting/scale_function_boost.rb', line 17 def to_solr_s "scale(#{solr_field},#{min},#{max})" end |