Skip to content
Snippets Groups Projects
Commit 86864a62 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed bug -- batch load broken by search refactoring.

parent f81ecdd6
No related merge requests found
...@@ -232,11 +232,15 @@ class Backend implements BackendInterface, SimilarInterface, RetrieveBatchInterf ...@@ -232,11 +232,15 @@ class Backend implements BackendInterface, SimilarInterface, RetrieveBatchInterf
$currentPage = array_splice($ids, 0, $pageSize, array()); $currentPage = array_splice($ids, 0, $pageSize, array());
$currentPage = array_map($formatIds, $currentPage); $currentPage = array_map($formatIds, $currentPage);
$params = new ParamBag( $params = new ParamBag(
array('q' => 'id:(' . implode(' OR ', $currentPage) . ')') array(
'q' => 'id:(' . implode(' OR ', $currentPage) . ')',
'start' => 0,
'rows' => $pageSize
)
); );
$this->injectResponseWriter($params); $this->injectResponseWriter($params);
$next = $this->createRecordCollection( $next = $this->createRecordCollection(
$this->connector->search($params, 0, $pageSize) $this->connector->search($params)
); );
if (!$results) { if (!$results) {
$results = $next; $results = $next;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment