add duration to search parameters
This commit is contained in:
@@ -59,6 +59,11 @@ class BookSearch
|
||||
$this->queryParts[] = $queryText;
|
||||
}
|
||||
|
||||
public function addRange($field, $min = '*', $max = '*')
|
||||
{
|
||||
$this->queryParts[] = sprintf('%s:[%s TO %s]', $field, $min, $max);
|
||||
}
|
||||
|
||||
public function addSortField($field, $order = \SolrQuery::ORDER_DESC)
|
||||
{
|
||||
$this->query->addSortField($field, $order);
|
||||
|
||||
Reference in New Issue
Block a user