You are here

function Drupal_Solr_Query_Interface::add_filter in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 apachesolr.module \Drupal_Solr_Query_Interface::add_filter()
  2. 6.2 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 paramter. If TRUE, the filter will be negative, meaning that matching values will be excluded from the result set.

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 1801
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);