This commit is contained in:
SIMON_\Simon
2018-09-05 17:34:53 +02:00
parent ddaf517579
commit 34acb97743
7 changed files with 79 additions and 27 deletions

View File

@@ -4,6 +4,7 @@ namespace BSR\Lib\Search;
use BSR\Lib\Configuration;
use BSR\Lib\Exception\WebException;
use BSR\Lib\Logger;
mb_http_output('UTF-8');
@@ -148,6 +149,7 @@ class BookSearch
*/
public function getResults($start = 0, $count = 15, $facets = false, $spellcheck = false, $highlight = false)
{
//Logger::log(print_r($this->queryParts, true), $verbosity = Logger::QUIET);
if (count($this->queryParts) == 0)
$query = '*:*';
else {
@@ -295,6 +297,7 @@ class BookSearch
$bs = new static();
$bs->addOrQuery($codes, $field);
$results = $bs->getResults(0, $count);
return $results['books'];
}