Deep inner_hits for parent/child structure

I create a mapping has three types(app,group,productline).app's parent is group,group's parent is productline.

Here are my query dsl(search for app type):

    {
        "has_parent": {
            "query": {
                "bool": {
                    "filter": [
                        {
                            "has_parent": {
                                "query": {
                                    "bool": {}
                                },
                                "inner_hits": {},
                                "type": "productline"
                            }
                        }
                    ]
                }
            },
            "inner_hits": {},
            "type": "group"
        }
    }

I find productline's inner_hits always empty,but productline does exist data,How i to get all parent's inner_hits data?

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