bulk()
bulk(array $params) : \Elastica\Bulk\ResponseSet
Bulk operation.
Every entry in the params array has to exactly on array
of the bulk operation. An example param array would be:
array(
array('index' => array('_index' => 'test', '_type' => 'user', '_id' => '1')),
array('user' => array('name' => 'hans')),
array('delete' => array('_index' => 'test', '_type' => 'user', '_id' => '2'))
);
Parameters
array |
$params |
Parameter array |
Throws
- \Elastica\Exception\ResponseException
- \Elastica\Exception\InvalidException
Returns
\Elastica\Bulk\ResponseSet
— Response object