Introduction
One of the advantages of Solr is its ability to calculate statistics from your data. Solr faceting mechanism provides functionalities that can help us in several tasks that we do every day. From getting the number of documents with the same values in a field (for example, companies from the same city) through the ability of date and range faceting, to the autocomplete features based on the faceting mechanism. This chapter will show you how to handle some of the common tasks when using the faceting mechanism.