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