You are here

protected function SarniaSolrService::createFilterQuery in Sarnia 7

Create a single search query string according to the given field, value and operator.

Overrides SearchApiSolrService::createFilterQuery

File

./service.inc, line 355

Class

SarniaSolrService
Search service class using Solr server.

Code

protected function createFilterQuery($field, $value, $operator, $field_info) {
  $filter = parent::createFilterQuery($field, $value, $operator, $field_info);

  // Separate filters by wrapping each in parenthesis, rather than expecting
  // each filter value to be a single, quoted phrase.
  return "({$filter})";
}