Lines Matching defs:docs
158 * @param Document[] $docs Array of Elastica\Document
167 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
169 public function updateDocuments(array $docs, array $options = []): ResponseSet
171 foreach ($docs as $doc) {
175 return $this->getClient()->updateDocuments($docs, $options);
187 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html
260 * @param array|Document[] $docs Array of Elastica\Document
271 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
273 public function addDocuments(array $docs, array $options = [])
275 foreach ($docs as $doc) {
279 return $this->getClient()->addDocuments($docs, $options);
323 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html
350 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html
399 * @param Document[] $docs Array of documents
407 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html
409 public function deleteDocuments(array $docs): ResponseSet
411 foreach ($docs as $doc) {
415 return $this->getClient()->deleteDocuments($docs);
809 * @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update.html