Reputation: 8678
I am using solr 4.10. I have to count requests for documents. According to my knowledge, when solr serves documents against a query, it copies it to cache also.
Meanwhile, if the same query is run again, then it is served from cache. No information are logged when a query is served from cache. How do I count serverving from cache. I think, it would be the simplest solution to log cache request also. Then How to do logging for cache.
Upvotes: 1
Views: 248
Reputation: 9500
Within the Solr admin UI you have statistics about the caches in your cores. This is already baked in. However this is not persistent. When the core is reloaded or the server restarted this information is lost.
Upvotes: 1