nervetattoo/elasticsearch — pull request #48 by 1e1 (2014-08-12 15:41:56+00:00)
Title: Reset Bulk operations while a new Bulk transaction is called.

Batches can have a limited memory.
This hack allows requesting the bulk API several times with the same PHP object.
```php
while($continue) {
$elastic->begin();
$rows = $pdo->query($query);
foreach ($rows as $row)
$elastic->index($row);
$elastic->commit();
}
```