OP_TYPE_CREATE
OP_TYPE_CREATE
$_data : \Elastica\Document|\Elastica\Script\AbstractScript
__construct(\Elastica\Document|\Elastica\Script\AbstractScript $document)
\Elastica\Document|\Elastica\Script\AbstractScript | $document |
setIndex(string|\Elastica\Index $index) : $this
string|\Elastica\Index | $index |
setType(string|\Elastica\Type $type) : $this
string|\Elastica\Type | $type |
setDocument(\Elastica\Document $document) : $this
\Elastica\Document | $document |
setScript(\Elastica\Script\AbstractScript $script) : $this
\Elastica\Script\AbstractScript | $script |
setData(\Elastica\Script\AbstractScript|\Elastica\Document $data) : $this
\Elastica\Script\AbstractScript|\Elastica\Document | $data |
getDocument() : \Elastica\Document|null
Note: This is for backwards compatibility.
getScript() : \Elastica\Script\AbstractScript|null
Note: This is for backwards compatibility.
getData() : \Elastica\Document|\Elastica\Script\AbstractScript
create(\Elastica\Document|\Elastica\Script\AbstractScript $data, string $opType = null) : static
Creates a bulk action for a document or a script.
The action can be index, update, create or delete based on the $opType param (by default index).
\Elastica\Document|\Elastica\Script\AbstractScript | $data | |
string | $opType |
_getMetadata(\Elastica\AbstractUpdateAction $source) : array
\Elastica\AbstractUpdateAction | $source |