Lines Matching refs:opType
132 public function addDocument(Document $document, ?string $opType = null): self
134 $action = AbstractDocumentAction::create($document, $opType);
144 public function addDocuments(array $documents, ?string $opType = null): self
147 $this->addDocument($document, $opType);
156 public function addScript(AbstractScript $script, ?string $opType = null): self
158 $action = AbstractDocumentAction::create($script, $opType);
165 * @param string|null $opType
169 public function addScripts(array $scripts, $opType = null): self
172 $this->addScript($script, $opType);
183 public function addData($data, ?string $opType = null)
191 $this->addScript($actionData, $opType);
193 $this->addDocument($actionData, $opType);
211 $opType = \key($row);
213 if (Action::isValidOpType($opType)) {
218 $action = new Action($opType, $metadata);
327 $opType = \key($item);
342 $bulkResponses[] = new BulkResponse($bulkResponseData, $action, $opType);