# What is the cache key filter filters?

**URL:** https://discuss.elastic.co/t/what-is-the-cache-key-filter-filters/345935
**Category:** Elasticsearch
**Created:** [October 27, 2023, 3:18pm UTC](https://discuss.elastic.co/t/what-is-the-cache-key-filter-filters/345935 "2023-10-27T15:18:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nalogel](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@nalogel](https://discuss.elastic.co/u/nalogel)
#### Post date: [October 27, 2023, 3:18pm UTC](https://discuss.elastic.co/t/what-is-the-cache-key-filter-filters/345935/1 "2023-10-27T15:18:53Z")

</div>

Hello everyone!  
According to the documentation, "frequently used filters will be cached automatically by Elasticsearch, to speed up performance".  
Is it necessary to sort the array in terms query (see picture) to avoid cache misses?

![image](https://us1.discourse-cdn.com/elastic/original/3X/0/5/0513992b19707b0cb53ea09355e4d6400184de7c.png)

---

<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: [October 27, 2023, 4:19pm UTC](https://discuss.elastic.co/t/what-is-the-cache-key-filter-filters/345935/2 "2023-10-27T16:19:01Z")

</div>

Welcome. No it's not needed.

---

<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: [November 24, 2023, 4:19pm UTC](https://discuss.elastic.co/t/what-is-the-cache-key-filter-filters/345935/3 "2023-11-24T16:19:02Z")

</div>

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