## Package org.apache.lucene.facet.complements

Allows to cache the total counts of categories, so that during search which returns a large number of results (>60% of segment size), the complement set of matching documents is counted.

See:
Description

Class Summary
ComplementCountingAggregator: A `CountingAggregator` used during complement counting.
TotalFacetCounts: Maintain Total Facet Counts per partition, for given parameters: Index reader of an index Taxonomy index reader Facet indexing params (and particularly the category list params) The total facet counts are maintained as an array of arrays of integers, where a separate array is kept for each partition.
TotalFacetCountsCache: Manage an LRU cache for `TotalFacetCounts` per index, taxonomy, and facet indexing params.

## Package org.apache.lucene.facet.complements Description

Allows to cache the total counts of categories, so that during search which returns a large number of results (>60% of segment size), the complement set of matching documents is counted. Useful for queries that visit a large number of documents, e.g. overview queries.

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