From 4d7ea8debb5d427caf4e3518d62b8abc6fd3c832 Mon Sep 17 00:00:00 2001 From: Mathieu Darse Date: Wed, 11 Mar 2015 17:06:51 +0100 Subject: [PATCH] Throw on failing bulk operation item --- .../Phrasea/SearchEngine/Elastic/Indexer/BulkOperation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/BulkOperation.php b/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/BulkOperation.php index 4501c82136..16e8cc7fbf 100644 --- a/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/BulkOperation.php +++ b/lib/Alchemy/Phrasea/SearchEngine/Elastic/Indexer/BulkOperation.php @@ -26,7 +26,7 @@ class BulkOperation private $flushLimit = 1000; private $throwOnError; - public function __construct(Client $client, $throwOnError = false) + public function __construct(Client $client, $throwOnError = true) { $this->client = $client; $this->throwOnError = $throwOnError;