function DrupalSolrQueryInterface::setSolrsort in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.interface.inc \DrupalSolrQueryInterface::setSolrsort()
- 6.3 apachesolr.interface.inc \DrupalSolrQueryInterface::setSolrsort()
Sets the sort.
Parameters
string $field: The name of the field in the Solr index to sort on.
string $direction: 'asc' or 'desc'
Return value
DrupalSolrQueryInterface The called object.
1 method overrides DrupalSolrQueryInterface::setSolrsort()
- SolrBaseQuery::setSolrsort in ./
Solr_Base_Query.php - Sets the sort.
File
- ./
apachesolr.interface.inc, line 295
Class
- DrupalSolrQueryInterface
- The interface for all 'query' objects.
Code
function setSolrsort($name, $direction);