O'Reilly logo

Apache Solr 3 Enterprise Search Server by Eric Pugh, David Smiley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Stats component

The Stats component computes some mathematical statistics of specified numeric fields in the index. The main requirement is that the field be indexed. The following statistics are computed over the non-null values (except missing which counts the nulls):

  • min: The smallest value.
  • max: The largest value.
  • sum: The sum.
  • count: The quantity of non-null values accumulated in these statistics.
  • missing: The quantity of records skipped due to missing values.
  • sumOfSquares: The sum of the square of each value. This is probably the least useful and is used internally to compute stddev efficiently.
  • mean: The average value.
  • stddev: The standard deviation of the values.

Configuring the stats component

This component performs a simple task and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required