From 793ddef68d317a24006adc44d91696a936f72d1c Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 7 Mar 2022 12:30:38 -0500 Subject: [PATCH] Update painless-reindex-context.asciidoc (#84444) (#84711) ctx['op'] should be set to 'noop', not 'none' when specifying no operation. Elasticsearch error when using 'none': ```json { "error" : { "root_cause" : [ { "type" : "illegal_argument_exception", "reason" : "Operation type [none] not allowed, only [noop, index, delete] are allowed" } ], "type" : "illegal_argument_exception", "reason" : "Operation type [none] not allowed, only [noop, index, delete] are allowed" }, "status" : 400 } ``` Co-authored-by: jalvar08 --- .../painless-contexts/painless-reindex-context.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/painless/painless-contexts/painless-reindex-context.asciidoc b/docs/painless/painless-contexts/painless-reindex-context.asciidoc index c2913d6f4a32c..13b216bac6345 100644 --- a/docs/painless/painless-contexts/painless-reindex-context.asciidoc +++ b/docs/painless/painless-contexts/painless-reindex-context.asciidoc @@ -32,7 +32,7 @@ reindexed into a target index. *Side Effects* `ctx['op']`:: - Use the default of `index` to update a document. Set to `none` to + Use the default of `index` to update a document. Set to `noop` to specify no operation or `delete` to delete the current document from the index.