Search code examples
searchsolrsearch-enginelucene

Is there any way to track how many times a Solr search result is returned?


We are using a Solr 4.0 server to allow our users to do a google like search of our data, return objects are of type "Item". Does solr/lucene have anything available that can track how often a particular Item has been returned?

Yes, I have googled this with no luck at all.


Solution

  • This certainly isn't the most elegant approach but with no other options I've implemented my own tracking. I just built code to spin a thread off to count the results and keep track in the DB.

    If someone runs into this issue and has a better solution please post your approach.