Skip to content

Commit

Permalink
Update painless-reindex-context.asciidoc (#84444)
Browse files Browse the repository at this point in the history
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
}
```
  • Loading branch information
jalvar08 authored Mar 7, 2022
1 parent eadb566 commit 6f7c158
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 6f7c158

Please sign in to comment.