/**
  * Adds document removal to a bulk request for the next commit.
  * Depending on the connection autocommit mode, the removal may be committed right away.
  *
  * @param string $id Document ID to remove.
  *
  * @return array
  */
 public function delete($id)
 {
     $this->indexManager->delete($this->documentClass, $id);
 }