# Elasticsearch Query to combine \_source and inner\_hits result using nested query

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-to-combine-source-and-inner-hits-result-using-nested-query/217819>\
**Category:** Elasticsearch\
**Created:** [February 4, 2020, 1:41pm UTC](https://discuss.elastic.co/t/elasticsearch-query-to-combine-source-and-inner-hits-result-using-nested-query/217819 "2020-02-04T13:41:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![inhinyera16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/inhinyera16/32/61625_2.png) [@inhinyera16](https://discuss.elastic.co/u/inhinyera16)\
**Post date:** [February 4, 2020, 1:41pm UTC](https://discuss.elastic.co/t/elasticsearch-query-to-combine-source-and-inner-hits-result-using-nested-query/217819/1 "2020-02-04T13:41:11Z")

</div>

Do you have any ways on how to combine the \_source and inner\_hits result to a single document?  
I am using nested query to filter my fields that is stored in array for a specific document but it shows the original document plus inner\_hits.

---

<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:** [March 3, 2020, 1:41pm UTC](https://discuss.elastic.co/t/elasticsearch-query-to-combine-source-and-inner-hits-result-using-nested-query/217819/2 "2020-03-03T13:41:18Z")

</div>

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