What is the key of elasticsearch Query Cache

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,