Is there possible to get work something like this? I've tried inner_hits also from parent to child, but still no effect.
ES 5.6
I thing, something is disabled, because inner_hits are not applied. I can not find whats wrong.
Mappings has _parent and documents are indexed with reference to parent. It works, because has_parent and has_child filter works as expected.
Whats wrong with inner hits?
{
"index": "??",
"size": 1,
"body": {
"query": {
"has_parent": {
"parent_type": "Parent",
"inner_hits": {
"name": "NameOfHits"
}
}
}
}
}