function DrupalSolrQueryInterface::hasFilter in Apache Solr Search 8
Same name and namespace in other branches
- 6.3 apachesolr.interface.inc \DrupalSolrQueryInterface::hasFilter()
- 7 apachesolr.interface.inc \DrupalSolrQueryInterface::hasFilter()
Tests whether a filter is already present in the query.
Parameters
string $name: The facet field name to check.
string $value: The facet value to check.
boolean $exclude: Optional, defaults to FALSE, must match the filter.
Return value
boolean TRUE or FALSE.
File
- ./
apachesolr.interface.inc, line 52
Class
- DrupalSolrQueryInterface
- The interface for all 'query' objects.
Code
function hasFilter($name, $value, $exclude = FALSE);