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

    :Distributed/CRUDA catch all label for issues around indexing, updating and getting a doc by id. Not search.>enhancementgood first issuelow hanging fruithelp wantedadoptme

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions