In Elasticsearch 5.0, a lot of refactoring has been done to support better caching. The different types of cache available are as follows:
- Node Query cache: Queries that run in filter context are cached here
- Shard request cache: The results of the entire query are cached here