public function SarniaViewsHandlerFilter::query in Sarnia 7
By default Solr returns all of the fields in a Solr doc. All that this method needs to do is specify the field alias.
Overrides SearchApiViewsHandlerFilter::query
File
- handlers/
handler_filter.inc, line 75
Class
- SarniaViewsHandlerFilter
- Really basic filter handler for filtering Solr documents in Views.
Code
public function query() {
while (is_array($this->value)) {
$this->value = $this->value ? reset($this->value) : NULL;
}
$this->value = token_replace($this->value);
$this->real_field = $this->options['solr_property'];
parent::query();
}