> SearchComponent is the class I was missing. Looks like if I can
provide an
> entirely new implementation of that it will be a lot cleaner than the
hack I
> had been using in 1.2 over top of facets. What I'm doing is implementing
> some aggregation functions like avg() and sum() that SQL has. This way I
> can send back the top 100 results to the UI, but I can also say
things like
> "the average price over all 900 product results from your query is
X". I'd
> always wanted to take this functionality and give it back to the Solr
> community, but it always felt like too much of a hack to submit it
before.
You may want to see SOLR-680 for ave(), sum() of DocSet.
StatsComponent - get min, max, sum, qt, avg of number fields
https://issues.apache.org/jira/browse/SOLR-680
Koji