Skip to content

Commit

Permalink
Update painless-reindex-context.asciidoc (#84444) (#84712)
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
}
```

Co-authored-by: jalvar08 <[email protected]>
  • Loading branch information
nik9000 and jalvar08 authored Mar 7, 2022
1 parent 6d932ad commit b323707
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b323707

Please sign in to comment.