I'm attempting to optimize a query using the Search Profiler in Kibana. I'm having issues as it appears ES keeps caching something so my first query is slow and subsequent ones are quick.
I have attempted the following on the index but it does not appear to help: 'POST /index-name/_cache/clear'
so that is clearing the caches used within the heap of the Elasticsearch JVM. However there are other caches like the Linux Kernel Page Cache, which are not cleared - that cache is responsible to keep that is frequently accessed in the main memory.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.