Hi!
I have a problem with a test that i've run with Kibana and ES 5.1
If I have understood the doc correctly, those 2 requests should return the same result, but it's not the case :
GET /gangs/_search
{
"query": {
"parent_id" : {
"type" : "gang",
"id" : "gang1"
}
}
}
GET /gangs/_search
{
"query": {
"has_parent": {
"parent_type": "gang",
"query": {
"term": {
"_id": "gang1"
}
}
}
}
}
The first query return an error : "[parent_id] _parent field has no parent type configured" and the second one return the expected document.
Here is my test setup on pastebin: http://pastebin.com/vPW6ieUV