From 86864a62a8a3e6d67d605502c63cbb0f5db8cf71 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 23 May 2013 12:18:28 -0400
Subject: [PATCH] Fixed bug -- batch load broken by search refactoring.

---
 .../src/VuFindSearch/Backend/Solr/Backend.php             | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Backend.php b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Backend.php
index eb9afd65ba9..cc53353f4db 100644
--- a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Backend.php
+++ b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Backend.php
@@ -232,11 +232,15 @@ class Backend implements BackendInterface, SimilarInterface, RetrieveBatchInterf
             $currentPage = array_splice($ids, 0, $pageSize, array());
             $currentPage = array_map($formatIds, $currentPage);
             $params = new ParamBag(
-                array('q' => 'id:(' . implode(' OR ', $currentPage) . ')')
+                array(
+                    'q' => 'id:(' . implode(' OR ', $currentPage) . ')',
+                    'start' => 0,
+                    'rows' => $pageSize
+                )
             );
             $this->injectResponseWriter($params);
             $next = $this->createRecordCollection(
-                $this->connector->search($params, 0, $pageSize)
+                $this->connector->search($params)
             );
             if (!$results) {
                 $results = $next;
-- 
GitLab