faceted search

This module provides multiple methods for computing facet counts and value aggregations:

At search time you first run your search, but pass a {@link org.apache.lucene.facet.FacetsCollector} to gather all hits (and optionally, scores for each hit). Then, instantiate whichever facet methods you'd like to use to compute aggregates. Finally, all methods implement a common {@link org.apache.lucene.facet.Facets} base API that you use to obtain specific facet counts.

The various {@link org.apache.lucene.facet.FacetsCollector#search} utility methods are useful for doing an "ordinary" search (sorting by score, or by a specified Sort) but also collecting into a {@link org.apache.lucene.facet.FacetsCollector} for subsequent faceting.