Lines Matching defs:doc
171 foreach ($docs as $doc) {
172 $doc->setIndex($this->getName());
215 public function addDocument(Document $doc): Response
219 if (null !== $doc->getId() && '' !== $doc->getId()) {
220 $endpoint->setId($doc->getId());
223 $options = $doc->getOptions(
238 $endpoint->setBody($doc->getData());
246 $doc->isAutoPopulate() || $this->getClient()->getConfigValue(['document', 'autoPopulate'], false)
248 if (isset($data['_id']) && !$doc->hasId()) {
249 $doc->setId($data['_id']);
251 $doc->setVersionParams($data);
275 foreach ($docs as $doc) {
276 $doc->setIndex($this->getName());
303 throw new NotFoundException('doc id '.$id.' not found');
314 $doc = new Document($id, $data, $this->getName());
315 $doc->setVersionParams($result);
317 return $doc;
411 foreach ($docs as $doc) {
412 $doc->setIndex($this->getName());