# Can't get Top Level Inner Hits with search results in 6.x

**URL:** <https://discuss.elastic.co/t/cant-get-top-level-inner-hits-with-search-results-in-6-x/151716>\
**Category:** Elasticsearch\
**Created:** [October 9, 2018, 9:34pm UTC](https://discuss.elastic.co/t/cant-get-top-level-inner-hits-with-search-results-in-6-x/151716 "2018-10-09T21:34:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_Wilde](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ben_wilde/32/36314_2.png) [@Ben\_Wilde](https://discuss.elastic.co/u/Ben_Wilde)\
**Post date:** [October 9, 2018, 9:34pm UTC](https://discuss.elastic.co/t/cant-get-top-level-inner-hits-with-search-results-in-6-x/151716/1 "2018-10-09T21:34:03Z")

</div>

I need to be able to execute a query that returns a set of results while also including an independently filtered set of inner hits for those results.

This was easy in version 2.x, I could add a top level inner hits section to the request with it's own independent filter. This way, I could return only the inner hits that I needed without changing the query.

Now in 6.x, the only way I see that I can do this is by making two separate round trip requests to the cluster which is definitely not ideal.

Is there a way that I can do this in a single request?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 6, 2018, 9:37pm UTC](https://discuss.elastic.co/t/cant-get-top-level-inner-hits-with-search-results-in-6-x/151716/2 "2018-11-06T21:37:02Z")

</div>

Closed on November 6, 2018, 9:37pm UTC

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