File manager - Edit - /var/www/payraty/helpdesk/vendor/elasticsearch/elasticsearch/docs/examples/0d664883151008b1051ef2c9ab2d0373.asciidoc
Back
// docs/update-by-query.asciidoc:537 [source, php] ---- $params = [ 'index' => 'twitter', 'body' => [ 'slice' => [ 'id' => 0, 'max' => 2, ], 'script' => [ 'source' => 'ctx._source[\'extra\'] = \'test\'', ], ], ]; $response = $client->updateByQuery($params); $params = [ 'index' => 'twitter', 'body' => [ 'slice' => [ 'id' => 1, 'max' => 2, ], 'script' => [ 'source' => 'ctx._source[\'extra\'] = \'test\'', ], ], ]; $response = $client->updateByQuery($params); ----
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings