Merge pull request #1285 from mdarse/es-bulk-throw-error

Throw on failing bulk operation item
This commit is contained in:
Nicolas Le Goff
2015-03-11 21:11:17 +01:00

View File

@@ -26,7 +26,7 @@ class BulkOperation
private $flushLimit = 1000; private $flushLimit = 1000;
private $throwOnError; private $throwOnError;
public function __construct(Client $client, $throwOnError = false) public function __construct(Client $client, $throwOnError = true)
{ {
$this->client = $client; $this->client = $client;
$this->throwOnError = $throwOnError; $this->throwOnError = $throwOnError;