# Get inner object in the query result- multi nested

**URL:** <https://discuss.elastic.co/t/get-inner-object-in-the-query-result-multi-nested/118631>\
**Category:** Elasticsearch\
**Created:** [February 6, 2018, 11:39am UTC](https://discuss.elastic.co/t/get-inner-object-in-the-query-result-multi-nested/118631 "2018-02-06T11:39:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SreeAnnait](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@SreeAnnait](https://discuss.elastic.co/u/SreeAnnait)\
**Post date:** [February 6, 2018, 11:39am UTC](https://discuss.elastic.co/t/get-inner-object-in-the-query-result-multi-nested/118631/1 "2018-02-06T11:39:35Z")

</div>

[https://pastebin.com/fTCsDEHj](https://pastebin.com/fTCsDEHj)

From the above structure, I want to get the tab\_fields.id where tab\_fields.is\_primary=true.

Is there any option to return specific field?

---

<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 6, 2018, 11:39am UTC](https://discuss.elastic.co/t/get-inner-object-in-the-query-result-multi-nested/118631/2 "2018-03-06T11:39:37Z")

</div>

Closed on March 6, 2018, 11:39am UTC

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