On 1/25/2018 9:59 AM, Becky Bonner wrote: > We are in the process of replacing our Google Search Appliance with SOLR 7.1 > and are needing one last piece of our requirements. We provide a monthly > report to our business that shows the top 1000 query terms requested during > the date range as well as the query terms requested that contained no > results. Is there a way to log the requests and later query solr for these > results? Or is there a plugin to add this functionality?
Solr currently does not track information like this. When you leave settings at default, Solr does log every query -- the logfile simply contains all of the parameters, both those included on the URL itself and those added by the handler definition in solrconfig.xml. It is possible to write a program that goes through Solr's logs and compiles query statistics. Solr doesn't log the IP address making the request. If you want that, the container that is running Solr can log it separately. The jetty.xml file included with Solr has had a commented out request log configuration for a VERY long time. Exactly which information from the query would you want Solr to track? I suspect that the answer to that question would vary widely, which means the feature not only has to be developed, but must also be configurable. Adding configuration options makes the development take longer and the code is more likely to have bugs. Yes, query tracking would be a good feature. But unless you want to write the code yourself, expect development to take a considerable amount of time. There are a lot of already existing issues that are more important in the eyes of Solr's development team. Thanks, Shawn