Update document, using update script. Requires elasticsearch >= 0.19.0.
public updateDocument ( integer | string $id, array | Elastica\Script\AbstractScript | |
||
$id | integer | string | document id |
$data | array | Elastica\Script\AbstractScript | |
raw data for request body |
$index | string | index to update |
$type | string | type of index to update |
$options | array | array of query params to use for query. For possible options check es api |
return |