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:
Adrin Jalali 2016-11-22 16:38:05 +01:00 committed by Nik Everett
parent 982f7cb067
commit 7f77214ced
1 changed files with 1 additions and 1 deletions

View File

@ -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"