On Wed, Aug 6, 2008 at 10:46 AM, Koji Sekiguchi <[EMAIL PROTECTED]> wrote: > Just on I'm working on the similar issue per customer request. > StatsComponent - it will return min,max,sum,qt,avg as follows:
Seems like perhaps one should be able to return any arbitrary function (actually multiple), and sort by an arbitrary function also. -Yonik > &stats=on&stats.field=price > > <stats> > <stats_fields> > <lst name="price"> > <double name="min">10</double> > <double name="max">30</double> > <double name="avg">20</double> > <double name="sum">60</double> > <double name="qt">3</double> > </lst> > </stats_fields> > </stats> > > WRT "stats", the component can output sum and avg, but not > sd and var. As our main purpose is to get "market price", > the output should be enough. > > I'll upload the patch soon. > > Koji