You are here

public function apachesolr_views_query::add_filter in Apache Solr Views 7

Same name and namespace in other branches
  1. 6 apachesolr_views_query.inc \apachesolr_views_query::add_filter()

File

./apachesolr_views_query.inc, line 185
Views query plugin for Apache Solr Views. Gets its data not from the database, but from a Solr server.

Class

apachesolr_views_query
@file Views query plugin for Apache Solr Views. Gets its data not from the database, but from a Solr server.

Code

public function add_filter($type, $value, $exclude = FALSE) {
  $exclude_string = $exclude ? '-' : '';
  $this->params['filters'][] = $exclude_string . $type . ':(' . $value . ')';
}