We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a88693 commit 763622bCopy full SHA for 763622b
docs/crud.asciidoc
@@ -212,13 +212,15 @@ $params = [
212
'type' => 'my_type',
213
'id' => 'my_id',
214
'body' => [
215
- 'script' => 'ctx._source.counter += count',
216
- 'params' => [
217
- 'count' => 4
+ 'script' => [
+ 'source' => 'ctx._source.counter += params.count',
+ 'params' => [
218
+ 'count' => 4
219
+ ],
220
],
221
'upsert' => [
222
'counter' => 1
- ]
223
224
]
225
];
226
0 commit comments