Elastica\Type::deleteDocuments PHP Метод

deleteDocuments() публичный Метод

Uses _bulk to delete documents from the server.
public deleteDocuments ( array $docs ) : ResponseSet
$docs array Array of Elastica\Document
Результат Elastica\Bulk\ResponseSet
    public function deleteDocuments(array $docs)
    {
        foreach ($docs as $doc) {
            $doc->setType($this->getName());
        }
        return $this->getIndex()->deleteDocuments($docs);
    }