# Package org.apache.lucene.search.grouping.term

Support for grouping by indexed terms via `DocValues`.

See: Description

- Class Summary
  Class | Description
  --- | ---
  TermAllGroupHeadsCollector | A base implementation of `AllGroupHeadsCollector` for retrieving the most relevant groups when grouping on a string based group field.
  TermAllGroupsCollector | A collector that collects all groups that match the query.
  TermDistinctValuesCollector | A term based implementation of `DistinctValuesCollector` that relies on `SortedDocValues` to count the distinct values per group.
  TermDistinctValuesCollector.TermGroupCount | Holds distinct values for a single group.
  TermFirstPassGroupingCollector | Concrete implementation of `FirstPassGroupingCollector` that groups based on field values and more specifically uses `SortedDocValues` to collect groups.
  TermGrouper | Collector factory for grouping by term
  TermGroupFacetCollector | An implementation of `GroupFacetCollector` that computes grouped facets based on the indexed terms from DocValues.
  TermSecondPassGroupingCollector | Concrete implementation of `SecondPassGroupingCollector` that groups based on field values and more specifically uses `SortedDocValues` to collect grouped docs.

## Package org.apache.lucene.search.grouping.term Description

Support for grouping by indexed terms via `DocValues`.

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.