Lucene has global cache LRUQueryCache stored in org.apache.lucene.search.IndexSearcher#DEFAULT_QUERY_CACHE field.
From LRUQueryCache javadocs:
This cache exposes some global statistics (hit count, miss count, number of cache entries, total number of DocIdSets that have ever been cached, number of evicted entries).
I think this can be useful for monitoring, if we expose it through jmx attributes.
Description of the bug or enhancement
Lucene has global cache LRUQueryCache stored in org.apache.lucene.search.IndexSearcher#DEFAULT_QUERY_CACHE field.
From LRUQueryCache javadocs:
I think this can be useful for monitoring, if we expose it through jmx attributes.