Hi,
I am building queries so that i can take advantage of query caching.
I need to know, how to write a filter so that it can be cached.
Can someone please help me if the below will be cached ?
When i run the above my cached index with same documents and cache disabled index with same documents gives exactly same throughput. The queryCache size goes upto 50Mb.
I am not able to understand why my caching and its utilization is not working.
Please help !
There are several caches, a shard request cache, a filter cache, plus Elasticsearch heavily relies on the OS cache.
Term filters are never cached, for a good reason: the inverted index is already a cache of hits for every possible term. So if all your queries look like the one you shared, it's expected that the query cache doesn't help.
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.