# Search response returns empty \_source

**URL:** <https://discuss.elastic.co/t/search-response-returns-empty-source/292108>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [December 16, 2021, 8:28am UTC](https://discuss.elastic.co/t/search-response-returns-empty-source/292108 "2021-12-16T08:28:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katgust](https://avatars.discourse-cdn.com/v4/letter/k/c4cdca/32.png) [@Katgust](https://discuss.elastic.co/u/Katgust)\
**Post date:** [December 16, 2021, 8:28am UTC](https://discuss.elastic.co/t/search-response-returns-empty-source/292108/1 "2021-12-16T08:28:12Z")

</div>

Similar or almost identical search querys in other files give the right response but now something isn't working. I stripped it down to the smallest query but I still have the same problem.

```auto
var searchResponse = await EsClient().SearchAsync<GroupDto>(s => s
        .Query(q => q
           .MatchAll()
       ));

```

With this search i get a successful call (valid NEST response, no errors) and every hit has the right id but the source values are 0 or null, so I can't get any actual data more than id and the count value.

Someone have a clue what could be wrong?

---

<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:** [January 13, 2022, 8:29am UTC](https://discuss.elastic.co/t/search-response-returns-empty-source/292108/2 "2022-01-13T08:29:11Z")

</div>

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