Most relevant children

Hey guys,

In my application I'm using the parent/child relationship. I would like to perform a query on all fields of the parent and children, and for each parent returned I would like to filters the children by keeping the children with the better score.

At the end I would like to compute the score of each search result by summing the parent with the most relevant children, and i would like to perform Children Aggregation on the most relevant children.

Is it supported by ES? Is it possible to achieve it with inner hits?

Thanks.