src/ElasticSearch/Client.php
public function commitBulk() {
        if ($this->bulk && $this->bulk->count()) {
            $result = $this->bulk->commit();
            $this->bulk = null;
            return $result;
        }
    }
public function commitBulk() {
        if ($this->bulk && $this->bulk->count()) {
            $result = $this->bulk->commit();
            $this->bulk = null;
            return $result;
        }
    }
commit a bulk-transaction
@return array