public deleteDocuments ( array $docs ) : |
||
$docs | array | |
리턴 |
public function deleteDocuments(array $docs)
{
if (empty($docs)) {
throw new InvalidException('Array has to consist of at least one element');
}
$bulk = new Bulk($this);
$bulk->addDocuments($docs, Action::OP_TYPE_DELETE);
return $bulk->send();
}
/** * Bulk deletes documents. * * @param array|\Elastica\Document[] $docs * @return \Elastica\Bulk\ResponseSet * @throws \Elastica\Exception\InvalidException */ public function deleteDocuments(array $docs) { return $this->client->deleteDocuments($docs); }