简体   繁体   中英

How to enable cache logging in solr

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.

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.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM