From 76a804e589d66562c5e0a5a0d64eca46a1780ad1 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Wed, 23 Nov 2016 09:26:53 -0500 Subject: [PATCH] Revert "it's a `noop` operation, not a `none` operation. (#21736)" This reverts commit 7f77214cedbc927347241670be140b54185752c6. `none` is indeed how you trigger the `noop` operation in the `_update` API. --- docs/reference/docs/update.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/docs/update.asciidoc b/docs/reference/docs/update.asciidoc index 266d52ac250..6cb95f406a8 100644 --- a/docs/reference/docs/update.asciidoc +++ b/docs/reference/docs/update.asciidoc @@ -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"