function send($raiseIfError = false)
 {
     $res = $this->client->request("POST", "/search/batch/dbs/", array(), $this->data);
     $batch_task = new BatchTask($this->client, $res);
     if ($raiseIfError && $batch_task->hasError()) {
         throw new DeepomaticBatchRequestsFailed("One or more requests failed: \n" . json_encode($batch_task->response, JSON_PRETTY_PRINT) . PHP_EOL);
     }
     return $batch_task;
 }