# Package org.apache.lucene.facet.taxonomy.writercache

Improves indexing time by caching a map of CategoryPath to their Ordinal.

See: Description

Interface Summary
TaxonomyWriterCache: TaxonomyWriterCache is a relatively simple interface for a cache of category->ordinal mappings, used in TaxonomyWriter implementations (such as `DirectoryTaxonomyWriter`).

Class Summary
LabelToOrdinal: Abstract class for storing Label->Ordinal mappings in a taxonomy.
LruTaxonomyWriterCache: LRU `TaxonomyWriterCache` - good choice for huge taxonomies.
NameHashIntCacheLRU: An LRU cache of mapping from name to int.
UTF8TaxonomyWriterCache: A "cache" that never frees memory, and stores labels in a BytesRefHash (utf-8 encoding).

Enum Summary
LruTaxonomyWriterCache.LRUType: Determines cache type.

## Package org.apache.lucene.facet.taxonomy.writercache Description

Improves indexing time by caching a map of CategoryPath to their Ordinal.