# Get all documents from index - like in Kibana (even if accualy showing some of them)

**URL:** <https://discuss.elastic.co/t/get-all-documents-from-index-like-in-kibana-even-if-accualy-showing-some-of-them/184548>\
**Category:** Elasticsearch\
**Created:** [June 6, 2019, 9:48am UTC](https://discuss.elastic.co/t/get-all-documents-from-index-like-in-kibana-even-if-accualy-showing-some-of-them/184548 "2019-06-06T09:48:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yishain11](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yishain11](https://discuss.elastic.co/u/yishain11)\
**Post date:** [June 6, 2019, 9:48am UTC](https://discuss.elastic.co/t/get-all-documents-from-index-like-in-kibana-even-if-accualy-showing-some-of-them/184548/1 "2019-06-06T09:48:15Z")

</div>

Hi everyone!  
I have a conceptual question:  
I understand that when sending a query to elasticsearch, ether by URI search or by queryDSL, there is a limit to the number of results that will be returned.

From what I gathered, its because elastic creates an object to store the results beforehand, and this object is limited in memory, based on your local hardware (is this true?).

The thing I don't understand is: When I enter the "discover" section in Kibana, I see the number of docs in the relevant indices, even if Kibana is showing only the first X number (500, in my case, V6.2) .

So how can I at least see how many docs match my query (even if I will show only X of them)?  
I use URI search mostly, but I would love to have a solution for URI and queryDSL.

Thanks!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [June 6, 2019, 10:31am UTC](https://discuss.elastic.co/t/get-all-documents-from-index-like-in-kibana-even-if-accualy-showing-some-of-them/184548/2 "2019-06-06T10:31:33Z")

</div>

The response object gives you the total number of hits that match the query.

---

<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:** [July 4, 2019, 10:31am UTC](https://discuss.elastic.co/t/get-all-documents-from-index-like-in-kibana-even-if-accualy-showing-some-of-them/184548/3 "2019-07-04T10:31:34Z")

</div>

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