Browse Source

Update painless-reindex-context.asciidoc (#84444)

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
}
```
jalvar08 3 years ago
parent
commit
6f7c158288
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/painless/painless-contexts/painless-reindex-context.asciidoc

+ 1 - 1
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.