I'm trying to delete using the query
DELETE /title_data/docs_child/_query
It's throwing me an error
{
"error": {
"root_cause": [
{
"type": "routing_missing_exception",
"reason": "routing is required for [title_data]/[docs_child]/[_query]",
"index": "title_data"
}
],
"type": "routing_missing_exception",
"reason": "routing is required for [title_data]/[docs_child]/[_query]",
"index": "title_data"
},
"status": 400
}
Can anyone help me how to delete if it is configured with parent-child relationship.
I tried deleting like this
DELETE /title_data/docs_child/_query
{
"query": {
"has_parent": {
"type": "title_parent",
"query": {
"match_all": {
}
}
}
}
}
Eventhough i'm getting the same error as mentioned above.