Skip to content

Commit

Permalink
Allow configuration of Algolia batch size (#768)
Browse files Browse the repository at this point in the history
  • Loading branch information
samlev authored Sep 22, 2023
1 parent b9985b9 commit 874a173
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/EngineManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

Expand Down

0 comments on commit 874a173

Please sign in to comment.