use filter-qery for ranges

This commit is contained in:
Gilles Crettenand
2015-06-19 10:27:59 +02:00
parent 5fe1bedd8b
commit ce69e32b51

View File

@@ -98,7 +98,7 @@ class BookSearch
public function addRange($field, $min = '*', $max = '*') public function addRange($field, $min = '*', $max = '*')
{ {
$this->queryParts[] = sprintf('%s:[%s TO %s]', $field, $min, $max); $this->filterQueryParts[] = sprintf('%s:[%s TO %s]', $field, $min, $max);
} }
public function addSortField($field, $order = \SolrQuery::ORDER_DESC) public function addSortField($field, $order = \SolrQuery::ORDER_DESC)