On Mon, 04 Aug 2008 14:19:45 -0300
Leonardo Dias <[EMAIL PROTECTED]> wrote:

> Everyone exhibits "your search for x has returned y results" on the top 
> of the results page, but we need something else, which would be 
> something like "your search for x returned y results in z records", 
> being z the numdocs of the SOLR response and y a SUM(quantity) of all 
> returned records.

if 'y" doesn't have to be extremely precise, you could query say, 50 records,
get the y out of this and extrapolate. You may end up with 'your search for x
returned aproximately y results in z records'. You could keep that information
(the approximate value of y)  in some cached object outside of SOLR and reuse
it for popular searches.

I say 50 records, but maybe you can get a good approximation with 10 only.

B
_________________________
{Beto|Norberto|Numard} Meijome

"Caminante no hay camino, se hace camino al andar"
   Antonio Machado

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.

Reply via email to