# Response total results doesn't match results

**URL:** <https://discuss.elastic.co/t/response-total-results-doesnt-match-results/210274>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [December 3, 2019, 3:41am UTC](https://discuss.elastic.co/t/response-total-results-doesnt-match-results/210274 "2019-12-03T03:41:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![abohannon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abohannon/32/58680_2.png) [@abohannon](https://discuss.elastic.co/u/abohannon)\
**Post date:** [December 3, 2019, 3:41am UTC](https://discuss.elastic.co/t/response-total-results-doesnt-match-results/210274/1 "2019-12-03T03:41:20Z")

</div>

I'm attempting to remove duplicate entries in our index by deleting all documents before re-uploading, but after I delete all documents 60 still remain and I'm unable to delete them. And when I query for the list of documents, I get `total_results: 60` but an empty array for the actual results. Is this a bug or am I overlooking something?

Screenshot of query response:  
 ![25%20PM](https://us1.discourse-cdn.com/elastic/original/3X/7/4/7425253593704a789486b318a83b35a86fb25009.png)

Screenshot of trying to access a document in the web app (this document, despite being deleted, is still somehow being indexed on our site):

 ![09%20PM](https://us1.discourse-cdn.com/elastic/original/3X/d/f/df691e1ab15b253e022f984627f7e8cc036c11bc.png)

---

<div class="post-metadata">

**Author:** ![orhantoy](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@orhantoy](https://discuss.elastic.co/u/orhantoy)\
**Post date:** [December 3, 2019, 9:51am UTC](https://discuss.elastic.co/t/response-total-results-doesnt-match-results/210274/2 "2019-12-03T09:51:45Z")

</div>

Hi @abohannon 👋

Are you seeing this issue for self-managed App Search? If yes, what version?

---

<div class="post-metadata">

**Author:** ![abohannon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abohannon/32/58680_2.png) [@abohannon](https://discuss.elastic.co/u/abohannon)\
**Post date:** [December 3, 2019, 6:17pm UTC](https://discuss.elastic.co/t/response-total-results-doesnt-match-results/210274/3 "2019-12-03T18:17:11Z")

</div>

@orhantoy no, we're using a hosted App Search at [https://app.swiftype.com/](https://app.swiftype.com/)

---

<div class="post-metadata">

**Author:** ![orhantoy](https://avatars.discourse-cdn.com/v4/letter/o/c5a1d2/32.png) [@orhantoy](https://discuss.elastic.co/u/orhantoy)\
**Post date:** [December 4, 2019, 9:17am UTC](https://discuss.elastic.co/t/response-total-results-doesnt-match-results/210274/4 "2019-12-04T09:17:49Z")

</div>

In that case you should contact [support@swiftype.com](mailto:support@swiftype.com) with more information about which account, engine etc this issue is happening on; that way it is easier for us to look into and help you sort out this problem. Sorry for the inconvenience.

---

<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 1, 2020, 9:17am UTC](https://discuss.elastic.co/t/response-total-results-doesnt-match-results/210274/5 "2020-01-01T09:17:49Z")

</div>

Closed on January 1, 2020, 9:17am UTC

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