Or if you dont care about grouped results you can also add the following option: stats.facet=gender
On 25 August 2011 14:40, Martijn v Groningen <martijn.v.gronin...@gmail.com>wrote: > 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 > -- Met vriendelijke groet, Martijn van Groningen