You are here

function DrupalSolrQueryInterface::hasFilter in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.interface.inc \DrupalSolrQueryInterface::hasFilter()
  2. 6.3 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 57

Class

DrupalSolrQueryInterface
The interface for all 'query' objects.

Code

function hasFilter($name, $value, $exclude = FALSE);