Constructor DirectoryTaxonomyReader
DirectoryTaxonomyReader(Directory)
Open for reading a taxonomy stored in a given Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyReader.Directory.
Declaration
public DirectoryTaxonomyReader(Directory directory)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | The Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyReader.Directory in which the taxonomy resides. |
Exceptions
Type | Condition |
---|---|
CorruptIndexException | if the Taxonomy is corrupt. |
DirectoryTaxonomyReader(DirectoryTaxonomyWriter)
Opens a DirectoryTaxonomyReader over the given DirectoryTaxonomyWriter (for NRT).
Declaration
public DirectoryTaxonomyReader(DirectoryTaxonomyWriter taxoWriter)
Parameters
Type | Name | Description |
---|---|---|
DirectoryTaxonomyWriter | taxoWriter | The DirectoryTaxonomyWriter from which to obtain newly added categories, in real-time. |