On 2/7/2015 9:26 PM, S.L wrote: > Is there a way to implement the trending functionality using Solr , to give > the results using a query for say the most searched terms in the past hours > or so , if the most searched terms is not possible is it possible to at > least the get results for the last 100 terms?
I'm reasonably sure that the only thing Solr has out of the box that can record queries is the logging feature that defaults to INFO. That data is not directly available to Solr, and it's not in a good format for easy parsing. Queries are not stored anywhere else by Solr. From what I understand, analysis is a relatively easy part of the equation, but the data must be available first, which is the hard part. Storing it in RAM is pretty much a non-starter -- there are installations that see thousands of queries every second. This is an area for improvement, but the infrastructure must be written from scratch. All work on this project is volunteer. We are highly motivated volunteers, but extensive work like this is difficult to fit into donated time. Many people who use Solr are already recording all queries in some other system (like a database), so it is far easier to implement analysis on that data. Thanks, Shawn