improve FindBooks for great number by operating in chunk

This commit is contained in:
Gilles Crettenand
2015-06-02 15:17:28 +02:00
parent c18948f424
commit a15fa4f093
2 changed files with 25 additions and 17 deletions

View File

@@ -78,7 +78,7 @@ class BookSearch
$books = isset($results['response']['docs']) && $results['response']['docs'] ?
array_map(function($o) { return (array) $o; }, $results['response']['docs']) :
false;
array();
return array(
'count' => $results['response']['numFound'],