Re: Customize facet.method

2009-06-05 Thread Shalin Shekhar Mangar
On Fri, Jun 5, 2009 at 2:20 PM, Jens Fischer  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.


Customize facet.method

2009-06-05 Thread Jens Fischer
Hi,

 

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.

I thought about using FacetSearch but am not sure if it can be customized
that way.

Any suggestions?

 

Thanks

Jens