update_by_query
Modify documents in an Elasticsearch index by executing a script on entries matching a specific query, with options to handle conflicts, limit updates, and refresh the index.
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 |