Get the list of readers from Solr

This commit is contained in:
Gilles Crettenand
2015-06-11 14:42:12 +02:00
parent 1894212a5c
commit 0143374ae1
3 changed files with 40 additions and 28 deletions

View File

@@ -64,6 +64,22 @@ class BookSearch
$this->query->addSortField($field, $order);
}
public function addFacetField($field)
{
$this->query->addFacetField($field);
}
public function setFacetLimits($limit = null, $count = null)
{
if(! is_null($limit)) {
$this->query->setFacetLimit($limit);
}
if(! is_null($count)) {
$this->query->setFacetMinCount($count);
}
}
/**
* @param int $start
* @param int $count