update_by_query
Modify documents in an Elasticsearch index using a query and script, handling conflicts and refresh options for controlled updates.
Instructions
Update documents in an Elasticsearch index based on a query
Input Schema
Name | Required | Description | Default |
---|---|---|---|
conflicts | No | What to do when version conflicts occur during the update | |
index | Yes | Name of the Elasticsearch index to update documents in | |
maxDocs | No | Limit the number of documents to update | |
query | Yes | Elasticsearch query to select documents for updating | |
refresh | No | Should the index be refreshed after the update (defaults to true) | |
script | Yes | Script to execute on matching documents |