Skip to content

Update by query should support short script form and doc #24898

@clintongormley

Description

@clintongormley

The script parameter in update-by-query requires a full script object, instead of allowing the simple script form:

"script": "ctx._source.foo=5"

We should be using the same script parser we use every else, which would take care of this automatically.

Also, any reason why we don't support partial doc updates with the doc parameter`?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions