Class: Sunspot::Query::Sort::DistanceSort

Inherits:
Abstract
  • Object
show all
Defined in:
lib/sunspot/query/sort.rb

Overview

A DistanceSort sorts by distance from the origin coordinates of a geographical distance search.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Constructor Details

This class inherits a constructor from Sunspot::Query::Sort::Abstract

Instance Method Details

#to_paramObject



99
100
101
# File 'lib/sunspot/query/sort.rb', line 99

def to_param
  "geo_distance #{direction_for_solr}"
end