In older Elasticsearch version I simple do the following to delete data:
curl -XDELETE 127.0.0.1:9200/what/ever/_search?q=keyword
Now in Elasticsearch 6.X it's no longer supported. I had to use delete_by_query feature.
According to the document, it seems like I can't use querystring there anymore, any ideas?
P.S
I need to match any fields, but the example query provided online matches a specific field, e.g
{
"query": {
"match": {
"message": "some message"
}
}
}