function DrupalSolrQueryInterface::setAvailableSort in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.interface.inc \DrupalSolrQueryInterface::setAvailableSort()
- 6.3 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 262
Class
- DrupalSolrQueryInterface
- The interface for all 'query' objects.
Code
function setAvailableSort($name, $sort);