Revert "it's a `noop` operation, not a `none` operation. (#21736)"

This reverts commit 7f77214ced.

`none` is indeed how you trigger the `noop` operation in the `_update`
API.
This commit is contained in:
Nik Everett 2016-11-23 09:26:53 -05:00
parent 67f02363ce
commit 76a804e589
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 = \"noop\" }",
"inline": "if (ctx._source.tags.contains(params.tag)) { ctx.op = \"delete\" } else { ctx.op = \"none\" }",
"lang": "painless",
"params" : {
"tag" : "green"