it's a `noop` operation, not a `none` operation. (#21736)
It works I guess cause it's ignored as an invalid operation.
This commit is contained in:
parent
982f7cb067
commit
7f77214ced
|
@ -102,7 +102,7 @@ the doc if the `tags` field contain `green`, otherwise it does nothing
|
|||
POST test/type1/1/_update
|
||||
{
|
||||
"script" : {
|
||||
"inline": "if (ctx._source.tags.contains(params.tag)) { ctx.op = \"delete\" } else { ctx.op = \"none\" }",
|
||||
"inline": "if (ctx._source.tags.contains(params.tag)) { ctx.op = \"delete\" } else { ctx.op = \"noop\" }",
|
||||
"lang": "painless",
|
||||
"params" : {
|
||||
"tag" : "green"
|
||||
|
|
Loading…
Reference in New Issue