When faceting is used, it is usually used in the context of faceted navigation in which a facet value becomes a navigation choice for the user to filter on. In Solr that becomes an additional filter query in a subsequent search. The total matching documents of that search should be equal to the facet value count. In this section we'll review how to build the filter queries. I won't show an example for facet query faceting because there's nothing to do—the facet query is a query and can be supplied directly as an
To keep the filter queries easier to read I won't show them URL encoded.
For the case of field value faceting, consider the first example in the chapter where ...