# Date range in query, yet all indices that match pattern are searched

**URL:** <https://discuss.elastic.co/t/date-range-in-query-yet-all-indices-that-match-pattern-are-searched/195919>\
**Category:** Elasticsearch\
**Created:** [August 20, 2019, 12:03pm UTC](https://discuss.elastic.co/t/date-range-in-query-yet-all-indices-that-match-pattern-are-searched/195919 "2019-08-20T12:03:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![benpolzin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benpolzin/32/12408_2.png) [@benpolzin](https://discuss.elastic.co/u/benpolzin)\
**Post date:** [September 20, 2019, 1:48am UTC](https://discuss.elastic.co/t/date-range-in-query-yet-all-indices-that-match-pattern-are-searched/195919/3 "2019-09-20T01:48:22Z")

</div>

Found that this was caused by KQL's auto-suggest queries running against all indices that match the index pattern and not just the indices that match the time range selected. Disabled filterEditor:suggestValues to Off in Kibana's advanced settings and performance returned to normal.

See this thread for more detail: [KQL-related performance issue](https://discuss.elastic.co/t/kql-related-performance-issue/199420/7)

---

_[View the full topic](https://discuss.elastic.co/t/date-range-in-query-yet-all-indices-that-match-pattern-are-searched/195919)._
