Skip to content

Commit

Permalink
Update painless-reindex-context.asciidoc (elastic#84444) (elastic#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 committed Mar 7, 2022
1 parent e5243e7 commit c577c6c
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 c577c6c

Please sign in to comment.