# Difference in total hits and received documents count

**URL:** https://discuss.elastic.co/t/difference-in-total-hits-and-received-documents-count/231957
**Category:** Elasticsearch
**Created:** [May 11, 2020, 8:41am UTC](https://discuss.elastic.co/t/difference-in-total-hits-and-received-documents-count/231957 "2020-05-11T08:41:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sarveshvish97](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@sarveshvish97](https://discuss.elastic.co/u/sarveshvish97)
#### Post date: [May 11, 2020, 8:41am UTC](https://discuss.elastic.co/t/difference-in-total-hits-and-received-documents-count/231957/1 "2020-05-11T08:41:24Z")

</div>

Hi,  
i am using Elasticsearch 7.6.0,

i'm using python to pull data from Elasticsearch  
so far i used scroll function and search\_after query to paginate data

but there's difference in total hits and total document i received from Elasticsearch for same query.

and i tried same query in Kibana doc tools i am getting expected number of documents

i verified i'm using elasticsearch 7.6.0 package as well.

Thank you.

---

<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, 2020, 8:50am UTC](https://discuss.elastic.co/t/difference-in-total-hits-and-received-documents-count/231957/2 "2020-06-08T08:50:33Z")

</div>

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