# Max Size of query result for bool queries

**URL:** https://discuss.elastic.co/t/max-size-of-query-result-for-bool-queries/207725
**Category:** Elasticsearch
**Created:** [November 13, 2019, 2:58pm UTC](https://discuss.elastic.co/t/max-size-of-query-result-for-bool-queries/207725 "2019-11-13T14:58:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DRoeming](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@DRoeming](https://discuss.elastic.co/u/DRoeming)
#### Post date: [November 13, 2019, 2:58pm UTC](https://discuss.elastic.co/t/max-size-of-query-result-for-bool-queries/207725/1 "2019-11-13T14:58:24Z")

</div>

Hi,

we use nest and we want to display the count of query result. But unfortunatelly the max size for bool query is 10000. How can I increase the number of max results for bool queries. Otherwise is there another way to receive the total count of bool queries if there are more than 10000 results?

Thanks,

Dominik

---

<div class="post-metadata">

### Author: ![Glen\_Smith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/glen_smith/32/111656_2.png) [@Glen\_Smith](https://discuss.elastic.co/u/Glen_Smith)
#### Post date: [November 13, 2019, 9:34pm UTC](https://discuss.elastic.co/t/max-size-of-query-result-for-bool-queries/207725/2 "2019-11-13T21:34:39Z")

</div>

Hello,

When actually retrieving such a large number of results, you should use [scrolling](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-body.html#request-body-search-scroll).

In order to just get the count of results of a search, you can use the [count API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-count.html).

---

<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: [December 11, 2019, 9:34pm UTC](https://discuss.elastic.co/t/max-size-of-query-result-for-bool-queries/207725/3 "2019-12-11T21:34:43Z")

</div>

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