How to disable caching in ES?

I am currently facing a challenge where I want to disable the query cache in ES, so that every query request reads data from disk instead of directly accessing ES's JVM memory cache. Query requests include but are not limited to (term, etc.). Can someone tell me how to achieve this? This has been bothering me for a long time. I am currently testing the geonames dataset in esrally, and I want to know the delay of ES reading data from disk for queries, rather than the delay of possibly hitting the cache.

Most benchmarks disable request cache through index settings, see example here for geonames track. The alternative is to use "cache": false property of a search-related operations, see docs.

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