Below is my query and code for delete_by_query. While code is running after some time i get
Elasticsearch conflict error.
What do i do wrong? How can i solve this ?
body_val = {
"query": {
"bool": {
"must": [
{
"term": {
"city": {
"value": city
}
}
},
{
"term": {
"username": {
"value": username
}
}
}
]
}
}
}
es.delete_by_query(body=body_val(city,username),index=index)
Thanks for answering