You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Chris Hostetter <ho...@fucit.org> on 2009/07/01 00:33:34 UTC
Re: Stats for all documents and not current search
: Date: Fri, 12 Jun 2009 09:09:43 -0700 (PDT)
: From: Vincent Pér�
: Subject: Stats for all documents and not current search
: I need to retrieve the stats of my index (using StatsComponent). It's not a
: problem when my query is empty, but the stats are update according the
: current search... and I need the stats of the whole index everytime.
: I'm currently doing two request (one with empty keyword to get the stats,
: one to get the results). Any idea which could save me one request?
You could write a custom request handler that did this ... but the amount
of processing done on the server side would be exactly the same as if you
made two requests, the only savings would be in the HTTP connection --
so using something like HTTP Keep-Alive should perform just as well.
in any case: the stats for your whole index aren't going to change unles
you update the index, if you keep them as separate requests, you can use
HTTP caching to make the stats call essentailly free.
-Hoss