class Solr::Query::Request::Boosting::PhraseProximityBoost
wiki.apache.org/solr/ExtendedDisMax#pf_.28Phrase_Fields.29 solr in action chapter 16.3.5 we only need to do the phrase proximity boosting if we have a phrase, i.e. more than 1 word
Attributes
boost_magnitude[R]
field[R]
Public Class Methods
new(field:, boost_magnitude:)
click to toggle source
# File lib/solr/query/request/boosting/phrase_proximity_boost.rb, line 13 def initialize(field:, boost_magnitude:) @field = field @boost_magnitude = boost_magnitude freeze end
Public Instance Methods
to_solr_s()
click to toggle source
# File lib/solr/query/request/boosting/phrase_proximity_boost.rb, line 19 def to_solr_s solr_field = solarize_field(field) "#{solr_field}^#{boost_magnitude}" end