Class: Sunspot::Query::Sort::ScoreSort

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

Overview

A ScoreSort sorts by keyword relevance score. This is only useful when performing fulltext 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

- (Object) to_param



89
90
91
# File 'sunspot/lib/sunspot/query/sort.rb', line 89

def to_param
  "score #{direction_for_solr}"
end