# What is the key of elasticsearch Query Cache

**URL:** <https://discuss.elastic.co/t/what-is-the-key-of-elasticsearch-query-cache/371506>\
**Category:** Elasticsearch\
**Created:** [December 5, 2024, 5:44am UTC](https://discuss.elastic.co/t/what-is-the-key-of-elasticsearch-query-cache/371506 "2024-12-05T05:44:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChatLee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chatlee/32/125019_2.png) [@ChatLee](https://discuss.elastic.co/u/ChatLee)\
**Post date:** [December 5, 2024, 5:44am UTC](https://discuss.elastic.co/t/what-is-the-key-of-elasticsearch-query-cache/371506/1 "2024-12-05T05:44:25Z")

</div>

Hi team,

About the query cache, we want to the answers to the following questions:

1. index.queries.cache.enabled=true would active all caches, right? like, node cache, shard cache and other stuff
2. how to construct the cache key? Keep the query keywords same all the same, if we change the pagination info, or sort rules. Do we get the results from cache, or mismatched from cache and need to query from index?

thanks,
