# Documents not showing Discover, show in queries and document counts

**URL:** <https://discuss.elastic.co/t/documents-not-showing-discover-show-in-queries-and-document-counts/272740>\
**Category:** Kibana\
**Created:** [May 11, 2021, 8:22pm UTC](https://discuss.elastic.co/t/documents-not-showing-discover-show-in-queries-and-document-counts/272740 "2021-05-11T20:22:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoganS](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@LoganS](https://discuss.elastic.co/u/LoganS)\
**Post date:** [May 11, 2021, 8:22pm UTC](https://discuss.elastic.co/t/documents-not-showing-discover-show-in-queries-and-document-counts/272740/1 "2021-05-11T20:22:20Z")

</div>

I have some documents that were created via Elastic's REST API. When logged into Kibana to view these records, I am able to see them in the results using a GET or PUT request in Dev Tools and in the document count for the index.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8cf2adffd6a1acaad223299b9efd969a4422d880.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/5/251b6cc34184b1834844d951d85b13d8dcf8c259.png)

These documents do not show in the results when querying in the Discover tab. I have expanded the date range far beyond where the docs would start to show up, and I've confirmed I can filter by that date range in the dev tools (see first screenshot).

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8cd3482d690f47a63b3b48c654a09fc2e2387674.png)

Any ideas why these documents aren't showing up in the Discover tab? I'm assuming I've missed something in the Date mapping, but it looks right from what I've seen in the documentation and other examples.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/6/a6a41667f6b75d73d4f5431297455da11ec59297.png)

Any help in understanding where I could have gone wrong in my setup or formatting would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [May 11, 2021, 8:29pm UTC](https://discuss.elastic.co/t/documents-not-showing-discover-show-in-queries-and-document-counts/272740/2 "2021-05-11T20:29:08Z")

</div>

Your Discover screenshot shows that you have selected mutually exclusive criteria: your Kibana index pattern is `stash-*` but you are filtering for `_index: gcclient*`. Your Kibana index pattern probably should be `gcclient*` if you want to see those documents only.

I am assuming that you don't have any unusual index aliases set up based on what you're showing.

---

<div class="post-metadata">

**Author:** ![LoganS](https://avatars.discourse-cdn.com/v4/letter/l/b9bd4f/32.png) [@LoganS](https://discuss.elastic.co/u/LoganS)\
**Post date:** [May 11, 2021, 8:35pm UTC](https://discuss.elastic.co/t/documents-not-showing-discover-show-in-queries-and-document-counts/272740/3 "2021-05-11T20:35:01Z")

</div>

Wow I am embarrassed. I didn't even realize there was an index pattern selection menu there. Thank you, the fixed my issue - glad it was me being dense.

---

<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 8, 2021, 8:35pm UTC](https://discuss.elastic.co/t/documents-not-showing-discover-show-in-queries-and-document-counts/272740/4 "2021-06-08T20:35:59Z")

</div>

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