diff --git a/src/Service/Indexer/InternalResourceIndexer.php b/src/Service/Indexer/InternalResourceIndexer.php index 02c6fd4..c223158 100644 --- a/src/Service/Indexer/InternalResourceIndexer.php +++ b/src/Service/Indexer/InternalResourceIndexer.php @@ -234,6 +234,7 @@ private function indexResourcesPerLanguageIndex( $indexedCount = $this->indexChunks( $processId, $lang, + $index, $pathList, $offset, $parameter->chunkSize @@ -271,6 +272,7 @@ private function indexResourcesPerLanguageIndex( private function indexChunks( string $processId, string $lang, + string $index, array $pathList, int $offset, int $length @@ -283,7 +285,6 @@ private function indexChunks( if ($resourceList === false) { return false; } - $index = $this->indexService->getIndex($lang); if ($this->aborter->isAbortionRequested($index)) { $this->aborter->resetAbortionRequest($index); $this->indexerProgressHandler->abort();