You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/09/30 18:07:22 UTC
[Solr Wiki] Update of "StatsComponent" by ryan
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by ryan:
http://wiki.apache.org/solr/StatsComponent
New page:
= StatsComponent =
<!> ["Solr1.4"]
The stats component returns simple statistics for numeric fields within the !DocSet.
With the example data loaded:
http://localhost:8983/solr/select?q=*:*&stats=true&stats.field=price&stats.field=popularity&stats.twopass=true&rows=0&indent=true
{{{
<lst name="stats">
<lst name="stats_fields">
<lst name="price">
<double name="min">0.0</double>
<double name="max">2199.0</double>
<double name="sum">5251.2699999999995</double>
<long name="count">15</long>
<long name="missing">11</long>
<double name="sumOfSquares">6038619.160300001</double>
<double name="mean">350.08466666666664</double>
<double name="median">11.5</double>
<double name="stddev">547.737557906113</double>
</lst>
<lst name="popularity">
<double name="min">0.0</double>
<double name="max">10.0</double>
<double name="sum">90.0</double>
<long name="count">26</long>
<long name="missing">0</long>
<double name="sumOfSquares">628.0</double>
<double name="mean">3.4615384615384617</double>
<double name="median">7.0</double>
<double name="stddev">3.5578731762756157</double>
</lst>
</lst>
</lst>
}}}