Class: Solr::Query::Request::Boosting::RankingFieldBoostFunction

Inherits:
Object
  • Object
show all
Includes:
Support::SchemaHelper
Defined in:
lib/solr/query/request/boosting/ranking_field_boost_function.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::SchemaHelper

#solarize_field

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

#fieldObject (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_sObject



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