Routing_missing_exception


(Akhilesh Anb) #1

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.


(Ali Beyad) #2

You need to specify the parent, see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete.html#delete-parent


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.