diff --git a/Service/Product/IndexBuilder.php b/Service/Product/IndexBuilder.php index a9f2c937a..f438ceba6 100644 --- a/Service/Product/IndexBuilder.php +++ b/Service/Product/IndexBuilder.php @@ -201,7 +201,7 @@ protected function buildIndexPage( $collection->load(); // eliminate extra query to obtain count $this->logger->log('Loaded ' . count($collection) . ' products'); $this->logger->stop($logMessage); - $indexOptions = $this->indexOptionsBuilder->buildEntityIndexOptions($storeId); + $indexOptions = $this->indexOptionsBuilder->buildEntityIndexOptions($storeId, $useTmpIndex); $indexData = $this->getProductsRecords($storeId, $collection, $productIds); if (!empty($indexData['toIndex'])) { $this->logger->start('ADD/UPDATE TO ALGOLIA');