public function apachesolr_views_handler_filter::query in Apache Solr Views 7
Add this filter to the query.
Overrides views_handler_filter::query
1 method overrides apachesolr_views_handler_filter::query()
- apachesolr_views_keyword_handler_filter::query in handlers/
apachesolr_views_keyword_handler_filter.inc - Add this filter to the query.
File
- handlers/
apachesolr_views_handler_filter.inc, line 13 - Main filter handler for Apache Solr Views.
Class
- apachesolr_views_handler_filter
- @file Main filter handler for Apache Solr Views.
Code
public function query() {
$this
->trim_value();
if (!empty($this->value) || $this->value === '0') {
if (is_array($this->value)) {
$this->value = implode(' OR ', $this->value);
}
$this->query
->add_where($this->options['group'], $this->real_field, $this->value, $this->operator);
}
}