Skip to content

Commit 4268f76

Browse files
authored
Remove offset by 1 for 'start' parameter (#7)
Resolves: #6
1 parent cd5828c commit 4268f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/Command/CleanupIndexCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5959
$i = 0;
6060
$pages = ceil($numFound / 1000);
6161
while ($i <= $pages) {
62-
$query->addParam('start', $i == 0 ? 1 : $i * 1000 + 1);
62+
$query->addParam('start', $i * 1000);
6363
$query->addParam('rows', 1000);
6464
$response = $server->getReadService()->search($query);
6565

0 commit comments

Comments
 (0)