Searched refs:opType (Results 1 – 6 of 6) sorted by relevance
/plugin/elasticsearch/vendor/ruflin/elastica/src/ |
H A D | Bulk.php | 145 $this->addDocument($document, $opType); 156 $action = AbstractDocumentAction::create($script, $opType); 163 * @param string|null $opType 170 $this->addScript($script, $opType); 181 public function addData($data, ?string $opType = null) argument 189 $this->addScript($actionData, $opType); 191 $this->addDocument($actionData, $opType); 209 $opType = \key($row); 211 if (Action::isValidOpType($opType)) { 216 $action = new Action($opType, $metadata); [all …]
|
H A D | AbstractUpdateAction.php | 192 * @param string $opType Only accept create 196 public function setOpType($opType) argument 198 return $this->setParam('op_type', $opType);
|
/plugin/elasticsearch/vendor/ruflin/elastica/src/Bulk/Action/ |
H A D | AbstractDocument.php | 121 public static function create($data, ?string $opType = null): self argument 128 if (null === $opType && $data->hasOpType()) { 129 $opType = $data->getOpType(); 134 if (null === $opType) { 135 $opType = self::OP_TYPE_UPDATE; 136 } elseif (self::OP_TYPE_UPDATE !== $opType) { 141 switch ($opType) {
|
/plugin/elasticsearch/vendor/ruflin/elastica/src/Bulk/ |
H A D | Action.php | 41 …public function __construct(string $opType = self::OP_TYPE_INDEX, array $metadata = [], array $sou… argument 43 $this->setOpType($opType); 189 public static function isValidOpType(?string $opType = null): bool argument 191 return \in_array($opType, self::$opTypes, true);
|
H A D | Response.php | 22 public function __construct($responseData, Action $action, string $opType) argument 27 $this->_opType = $opType;
|
/plugin/elasticsearch/vendor/ruflin/elastica/src/Exception/Bulk/Response/ |
H A D | ActionException.php | 36 $opType = $response->getOpType(); 52 return "{$opType}: {$path} caused {$error}";
|