Class: Solr::Query::Request::Boosting::RankingFieldBoostFunction
- Inherits:
-
Object
- Object
- Solr::Query::Request::Boosting::RankingFieldBoostFunction
- Includes:
- Support::SchemaHelper
- Defined in:
- lib/solr/query/request/boosting/ranking_field_boost_function.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
Instance Method Summary collapse
-
#initialize(field:) ⇒ RankingFieldBoostFunction
constructor
A new instance of RankingFieldBoostFunction.
- #to_solr_s ⇒ Object
Methods included from Support::SchemaHelper
Constructor Details
#initialize(field:) ⇒ RankingFieldBoostFunction
Returns a new instance of RankingFieldBoostFunction.
9 10 11 |
# File 'lib/solr/query/request/boosting/ranking_field_boost_function.rb', line 9 def initialize(field:) @field = field end |
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
7 8 9 |
# File 'lib/solr/query/request/boosting/ranking_field_boost_function.rb', line 7 def field @field end |
Instance Method Details
#to_solr_s ⇒ Object
13 14 15 |
# File 'lib/solr/query/request/boosting/ranking_field_boost_function.rb', line 13 def to_solr_s solarize_field(field).to_s end |