On Fri, Jun 5, 2009 at 2:20 PM, Jens Fischer <jens.fisc...@hour1.de> wrote:

>
> What is the best way to do some customized calculations on fields of the
> full result set?
>
> Each result contains a couple of numerical values.
>
> First I need to do a calculation for every single result and send build the
> average over the resulting numbers.
>

For simply calculating averages StatsComponent can be used

http://wiki.apache.org/solr/StatsComponent

However, since you need to do some calculations, I think you can write a
custom FunctionQuery/ValueSourceParser to do the job.

-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to