You are here

function DrupalSolrQueryInterface::setAvailableSort in Apache Solr Search 6.3

Same name and namespace in other branches
  1. 8 apachesolr.interface.inc \DrupalSolrQueryInterface::setAvailableSort()
  2. 7 apachesolr.interface.inc \DrupalSolrQueryInterface::setAvailableSort()

Adds an available sort.

Parameters

string $name: The name of the field in the Solr index to sort on.

array $sort: An array with the keys 'title', for the human name of the sort, and 'default', for the default sort direction ('asc' or 'desc').

Return value

DrupalSolrQueryInterface The called object.

1 method overrides DrupalSolrQueryInterface::setAvailableSort()
SolrBaseQuery::setAvailableSort in ./Solr_Base_Query.php
Adds an available sort.

File

./apachesolr.interface.inc, line 257

Class

DrupalSolrQueryInterface
The interface for all 'query' objects.

Code

function setAvailableSort($name, $sort);