diff --git a/src/EngineManager.php b/src/EngineManager.php index 1807783f..e4b538a3 100644 --- a/src/EngineManager.php +++ b/src/EngineManager.php @@ -58,6 +58,10 @@ public function createAlgoliaDriver() $config->setWriteTimeout($writeTimeout); } + if (is_int($batchSize = config('scout.algolia.batch_size'))) { + $config->setBatchSize($batchSize); + } + return new AlgoliaEngine(Algolia::createWithConfig($config), config('scout.soft_delete')); }