If you take this query from the wiki:
http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&stats.twopass=true&rows=0&indent=true&stats.facet=inStock
In this case you get stats about the popularity per inStock value (true /
false). Replacing this values with we
Hi, thanks for your reply..
it doesn't work. I am getting the plain stats results at the end of the
response, but no statistics per group..
thanks anyway
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
wrote:
> Hi Omri,
>
> I think you can achieve that with grouping and the Solr StatsComponent (
> http://wiki.apache.org/solr/StatsComponent).
> In order
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&s
Thanks, but I actually need something more deterministic and more
accurate..
Anyone knows if there is an already existing feature for that?
thanks again
Hi
Is it possible that Luke Handler can be used for this?
I used Something like:
http://localhost:8080/solr/admin/luke?fl=fieldName&numTerms=1
to get an estimate of a range of values a field can have.
Hope you find this information useful.
Sowmya.
On Thu, Aug 25, 2011 at 10:58 AM, Omri Coh
Hi All,
I want to group-by certain field and perform statistics per group on a
certain field of my choice.
For example, if I have the next documents in my collection:
12353
65
male
12353
63
male
12353
49
male
now I want to group by gender, and let say for the sake of