OP_TYPE_CREATE
OP_TYPE_CREATE
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 |
setIndex(string|\Elastica\Index $index) : $this
string|\Elastica\Index | $index |