public function apachesolr_views_query::add_filter in Apache Solr Views 6
Same name and namespace in other branches
- 7 apachesolr_views_query.inc \apachesolr_views_query::add_filter()
Add in a facet string
Parameters
string $type: The type of facet. use apachesolr_index_key() for dynamic fields
string $value: The value of the facet. Can be "story OR page" to filter multiple
boolean $exclude: Whether or not to exclude the value from the results
Return value
none
File
- ./
apachesolr_views_query.inc, line 522
Class
- apachesolr_views_query
- Class for handling a view that gets its data not from the database, but from a Solr server.
Code
public function add_filter($type, $value, $exclude = FALSE) {
$this->_facets[$type][] = array(
'value' => $value,
'exclude' => $exclude,
);
}