public function SolrBaseQuery::removeAvailableSort in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 Solr_Base_Query.php \SolrBaseQuery::removeAvailableSort()
- 7 Solr_Base_Query.php \SolrBaseQuery::removeAvailableSort()
Removes an available sort.
Parameters
string $name: The name of the field in the Solr index to sort on.
Return value
DrupalSolrQueryInterface The called object.
Overrides DrupalSolrQueryInterface::removeAvailableSort
File
- ./
Solr_Base_Query.php, line 598 - This class allows you to make operations on a query that will be sent to Apache Solr. methods such as adding and removing sorts, remove and replace parameters, adding and removing filters, getters and setters for various parameters and more
Class
Code
public function removeAvailableSort($name) {
unset($this->available_sorts[$name]);
// Re-parse the sortstring.
$this
->parseSortString();
return $this;
}