class Solr::Query::Request::Boosting::GeodistFunction
Attributes
field[R]
latitude[R]
longitude[R]
Public Class Methods
new(field:, latitude:, longitude:)
click to toggle source
# File lib/solr/query/request/boosting/geodist_function.rb, line 13 def initialize(field:, latitude:, longitude:) @field = field @latitude = latitude @longitude = longitude freeze end
Public Instance Methods
latlng()
click to toggle source
TODO: Check this dead code and the initialize arguments
# File lib/solr/query/request/boosting/geodist_function.rb, line 26 def latlng "#{latitude},#{longitude}" end
sfield()
click to toggle source
# File lib/solr/query/request/boosting/geodist_function.rb, line 30 def sfield solarize_field(field) end
to_solr_s()
click to toggle source
# File lib/solr/query/request/boosting/geodist_function.rb, line 20 def to_solr_s # this constants are magical, but they influence the slope of geo proximity decay function 'recip(geodist(),3,17000,3000)' end