Package | Description |
---|---|
org.apache.lucene.facet.taxonomy.directory |
Taxonomy index implementation using on top of a Directory.
|
org.apache.lucene.facet.taxonomy.writercache |
Improves indexing time by caching a map of CategoryPath to their Ordinal.
|
Modifier and Type | Method and Description |
---|---|
static TaxonomyWriterCache |
DirectoryTaxonomyWriter.defaultTaxonomyWriterCache()
Defines the default
TaxonomyWriterCache to use in constructors
which do not specify one. |
TaxonomyWriterCache |
DirectoryTaxonomyWriter.getCache()
Returns the
TaxonomyWriterCache in use by this writer. |
Constructor and Description |
---|
DirectoryTaxonomyWriter(Directory directory,
IndexWriterConfig.OpenMode openMode,
TaxonomyWriterCache cache)
Construct a Taxonomy writer.
|
Modifier and Type | Class and Description |
---|---|
class |
LruTaxonomyWriterCache
LRU
TaxonomyWriterCache - good choice for huge taxonomies. |
class |
UTF8TaxonomyWriterCache
A "cache" that never frees memory, and stores labels in a BytesRefHash (utf-8 encoding).
|
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.