Instantly share code, notes, and snippets.

Embed
What would you like to do?
Delete documents by query in Elasticsearch
POST INDEX_NAME/_delete_by_query
{
"query": {
"bool": {
"must": [
{
"term": {
"field1": "100"
}
},
{
"term": {
"field2": false
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment