class Solr::Query::Request::Boosting::ScaleFunctionBoost

Attributes

field[R]
max[R]
min[R]

Public Class Methods

new(field:, min:, max:) click to toggle source
# 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

Public Instance Methods

solr_field() click to toggle source
# File lib/solr/query/request/boosting/scale_function_boost.rb, line 21
def solr_field
  solarize_field(field)
end
to_solr_s() click to toggle source
# File lib/solr/query/request/boosting/scale_function_boost.rb, line 17
def to_solr_s
  "scale(#{solr_field},#{min},#{max})"
end