You are here

function Drupal_Solr_Query_Interface::add_filter in Apache Solr Search 6.2

Same name and namespace in other branches
  1. 5.2 apachesolr.module \Drupal_Solr_Query_Interface::add_filter()
  2. 6 apachesolr.module \Drupal_Solr_Query_Interface::add_filter()

Add a filter to a query.

Parameters

string $field: The facet field to apply to this query

string value: The value of the facet to apply

boolean $exclude: (optional) If TRUE, the filter will be negative, meaning that matching values will be excluded from the result set. Defaults to FALSE.

1 method overrides Drupal_Solr_Query_Interface::add_filter()
Solr_Base_Query::add_filter in ./Solr_Base_Query.php
Add a filter to a query.

File

./apachesolr.module, line 2417
Integration with the Apache Solr search application.

Class

Drupal_Solr_Query_Interface
The interface for all 'query' objects.

Code

function add_filter($field, $value, $exclude = FALSE);