diff --git a/Classes/Command/CleanupIndexCommand.php b/Classes/Command/CleanupIndexCommand.php index 06eaaad..cd7a8bd 100644 --- a/Classes/Command/CleanupIndexCommand.php +++ b/Classes/Command/CleanupIndexCommand.php @@ -59,7 +59,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $i = 0; $pages = ceil($numFound / 1000); while ($i <= $pages) { - $query->addParam('start', $i == 0 ? 1 : $i * 1000 + 1); + $query->addParam('start', $i * 1000); $query->addParam('rows', 1000); $response = $server->getReadService()->search($query);