From b3237078d2170b78b91f299dbfaeab77729b79aa Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 7 Mar 2022 12:31:22 -0500 Subject: [PATCH] Update painless-reindex-context.asciidoc (#84444) (#84712) 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 4ecf17f6cb7b6..ce7e3cd37f3ff 100644 --- a/docs/painless/painless-contexts/painless-reindex-context.asciidoc +++ b/docs/painless/painless-contexts/painless-reindex-context.asciidoc @@ -35,7 +35,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.