delete_by_query
Remove documents from an Elasticsearch index using a specific query, with options to manage conflicts, limit deletions, and refresh the index.
Instructions
Delete 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 deletion | |
index | Yes | Name of the Elasticsearch index to delete documents from | |
maxDocs | No | Limit the number of documents to delete | |
query | Yes | Elasticsearch query to select documents for deletion | |
refresh | No | Should the index be refreshed after the deletion (defaults to true) |