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.

In SQL you can do something like:

SELECT count(1), sum(quantity) FROM table

But with SOLR we don't know how can we do the same without having to return all the XML result for the field "quantity" and then sum it to show the total. Any hints on how to do it in a better way?



cheers,

Leonardo

Reply via email to