The Stats component returns simple statistics for numeric, string, and date fields within the document set. This is useful for many taskestasks. It’s particulary particularly useful for summarizing how much disk space is used by a query result.
For instance the following query returns the all of the Tiff items in the index
...
Adding “stats” to the query along with the field name “bytes”, where the file size is stored, will return statistics at the end of the results:
...
Code Block |
---|
500,288,101,188,175 Bytes ÷ 1,099,511,627,776 = 500.3 Terabytes |
You can learn more about the Stats Component in the Solr Documentation