Hi Omri,

I think you can achieve that with grouping and the Solr StatsComponent (
http://wiki.apache.org/solr/StatsComponent).
In order to compute statistics on groups you must set the option
group.truncate=true
An example query:
q=*:*&group=true&group.field=gender&group.truncate=true&stats=true&stats.field=weight

Let me know if this fits your use case.

Martijn

On 25 August 2011 11:17, Omri Cohen <omri...@gmail.com> wrote:

> Thanks, but I actually need something more deterministic and more
> accurate..
>
> Anyone knows if there is an already existing feature for that?
>
> thanks again
>



-- 
Met vriendelijke groet,

Martijn van Groningen

Reply via email to