# Elasticsearch query time range issue

**URL:** <https://discuss.elastic.co/t/elasticsearch-query-time-range-issue/268672>\
**Category:** Elasticsearch\
**Created:** [March 29, 2021, 3:19pm UTC](https://discuss.elastic.co/t/elasticsearch-query-time-range-issue/268672 "2021-03-29T15:19:07Z")\
**Posts on this page:** 1\
**Showing post:** 10

<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:** [March 30, 2021, 3:26pm UTC](https://discuss.elastic.co/t/elasticsearch-query-time-range-issue/268672/10 "2021-03-30T15:26:51Z")

</div>

You can use:

- the [`size` and `from` parameters](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-from-size.html) to display by default up to 10000 records to your users. If you want to change this limit, you can change `index.max_result_window` setting but be aware of the consequences (ie memory).
- the [search after](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-search-after.html) feature to do deep pagination.
- the [Scroll API](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html) if you want to extract a resultset to be consumed by another tool later.

---

_[View the full topic](https://discuss.elastic.co/t/elasticsearch-query-time-range-issue/268672)._
