# Search query intermittently returns entire index, disregarding parameters

**URL:** <https://discuss.elastic.co/t/search-query-intermittently-returns-entire-index-disregarding-parameters/235620>\
**Category:** Elasticsearch\
**Created:** [June 3, 2020, 7:22pm UTC](https://discuss.elastic.co/t/search-query-intermittently-returns-entire-index-disregarding-parameters/235620 "2020-06-03T19:22:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samueljohnwilson](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@samueljohnwilson](https://discuss.elastic.co/u/samueljohnwilson)\
**Post date:** [June 3, 2020, 7:22pm UTC](https://discuss.elastic.co/t/search-query-intermittently-returns-entire-index-disregarding-parameters/235620/1 "2020-06-03T19:22:13Z")

</div>

I am experiencing an issue where searches occasionally fail to respect the provided terms, and instead return the most recent page of results in the index with a count that is the total sum of all documents in the index.

This only happens occasionally, and running the search immediately after will return the expected results. I am seeing this across multiple indices and in both staging and production environments.

Unfortunately, I can't seem to find anyone online having the same issue, so any thoughts would be appreciated!

---

<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 1, 2020, 7:22pm UTC](https://discuss.elastic.co/t/search-query-intermittently-returns-entire-index-disregarding-parameters/235620/2 "2020-07-01T19:22:14Z")

</div>

Closed on July 1, 2020, 7:22pm UTC

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