lib/solr/query/request/boosting/numeric_field_value_match_boost_function.rb
module Solr
module Query
class Request
class Boosting
class NumericFieldValueMatchBoostFunction < FieldValueMatchBoostFunction
def to_solr_s
"if(sub(def(#{solr_field},-1),#{value}),1,#{boost_magnitude})"
end
end
end
end
end
end