You are here

function DrupalSolrQueryInterface::addFilter in Apache Solr Search 7

Same name and namespace in other branches
  1. 8 apachesolr.interface.inc \DrupalSolrQueryInterface::addFilter()
  2. 6.3 apachesolr.interface.inc \DrupalSolrQueryInterface::addFilter()

Adds a filter to the query.

Parameters

string $name: The facet field name.

string $value: The facet field value.

boolean $exclude: Set to TRUE to filter out documents matching $value.

string $local: Solr LocalParams.

Return value

DrupalSolrQueryInterface The called object.

File

./apachesolr.interface.inc, line 74

Class

DrupalSolrQueryInterface
The interface for all 'query' objects.

Code

function addFilter($name, $value, $exclude = FALSE, $local = '');