From 4671e4845aceaa78c8c7ac3f70ff02afb43217b4 Mon Sep 17 00:00:00 2001 From: Guillermo Pages Date: Fri, 1 Jul 2022 14:31:24 +0200 Subject: [PATCH] fix: using whole codes instead of parts results in lag --- src/BookSearch/BookSearch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BookSearch/BookSearch.php b/src/BookSearch/BookSearch.php index fb75786..69fba4e 100644 --- a/src/BookSearch/BookSearch.php +++ b/src/BookSearch/BookSearch.php @@ -295,7 +295,7 @@ class BookSearch $books = []; foreach($parts as $p) { // if we use array_merge here the numerical keys (book code) will be lost - $bs->addOrQuery($codes, $field); + $bs->addOrQuery($p, $field); $results = $bs->getResults(0, $count); $foundBooks = $results['books']; $books += $foundBooks;