# Returning specific nested fields (Nest client)

**URL:** <https://discuss.elastic.co/t/returning-specific-nested-fields-nest-client/85950>\
**Category:** Elasticsearch\
**Created:** [May 16, 2017, 1:55pm UTC](https://discuss.elastic.co/t/returning-specific-nested-fields-nest-client/85950 "2017-05-16T13:55:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmills-Inkwrx](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@bmills-Inkwrx](https://discuss.elastic.co/u/bmills-Inkwrx)\
**Post date:** [May 16, 2017, 1:55pm UTC](https://discuss.elastic.co/t/returning-specific-nested-fields-nest-client/85950/1 "2017-05-16T13:55:29Z")

</div>

I have a nest query where I'd like to limit the data returned as my nested field can have up to 1000 entries in it, but I only need a few of them at a time.

for example this works to just bring back the specified non nested fields:

```
.Query(q => q.
 // the query that returns the documents
       .Source(sr => sr
       .Includes(fi => fi
       .Fields(f => f.AppId,f => f.FormName)))

```

But I'd like to specify specific nested fields to bring back, so something like:

```
 .Fields(f => f.AppId, f => f.FormName, f => f.Fields.First().FieldId == "fdtElem2607Group")))

```

But this brings back all 1000 nested fields. Any way to limit the nested fields returned?

---

<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:** [June 13, 2017, 1:55pm UTC](https://discuss.elastic.co/t/returning-specific-nested-fields-nest-client/85950/2 "2017-06-13T13:55:58Z")

</div>

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