You are here

public function SolrFilterSubQuery::removeFilter in Apache Solr Search 8

Same name and namespace in other branches
  1. 6.3 Solr_Base_Query.php \SolrFilterSubQuery::removeFilter()
  2. 7 Solr_Base_Query.php \SolrFilterSubQuery::removeFilter()

File

./Solr_Base_Query.php, line 81
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

SolrFilterSubQuery
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…

Code

public function removeFilter($name, $value = NULL, $exclude = FALSE) {

  // Remove from the public list of filters.
  $this
    ->unsetFilter($this->fields, $name, $value, $exclude);
  return $this;
}