From ce69e32b516559102bc8423a015699e68c1b2495 Mon Sep 17 00:00:00 2001 From: Gilles Crettenand Date: Fri, 19 Jun 2015 10:27:59 +0200 Subject: [PATCH] use filter-qery for ranges --- Lib/Search/BookSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/Search/BookSearch.php b/Lib/Search/BookSearch.php index 3eed0bf..0ab5a5d 100644 --- a/Lib/Search/BookSearch.php +++ b/Lib/Search/BookSearch.php @@ -98,7 +98,7 @@ class BookSearch 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)