On Thu, Feb 11, 2010 at 13:07, Ian Connor <ian.con...@gmail.com> wrote:
> The idea is that in the log is currently like:
>
> Completed in 1290ms (View: 152, DB: 75) | 200 OK [
> http://localhost:3000/search?q=nik+gene+cluster&view=2]
>
> I want to extend it to also track the Solr query times and time spent in
> solr-ruby like:
>
> Completed in 1290ms (View: 152, DB: 75, Solr: 334) | 200 OK [
> http://localhost:3000/search?q=nik+gene+cluster&view=2]
>
> Has anyone done such a plug-in or extension already?
>
> --
> Regards,
>
> Ian Connor
>

Here's a module in Sunspot::Rails that does that. It's written against
RSolr, which is an alternative to solr-ruby, but the concept is the
same:
http://github.com/outoftime/sunspot/blob/master/sunspot_rails/lib/sunspot/rails/solr_logging.rb

Reply via email to