Class DirectoryTaxonomyReader
A TaxonomyReader which retrieves stored taxonomy information from a Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyReader.Directory.
Reading from the on-disk index on every method call is too slow, so this implementation employs caching: Some methods cache recent requests and their results, while other methods prefetch all the data into memory and then provide answers directly from in-memory tables. See the documentation of individual methods for comments on their performance.
@lucene.experimental
Inherited Members
Assembly: DistributedLucene.Net.Facet.dll
Syntax
public class DirectoryTaxonomyReader : TaxonomyReader, IIdentifiableSurrogate, IDisposable
Constructors
Name | Description |
---|---|
DirectoryTaxonomyReader(DirectoryTaxonomyWriter) | Opens a DirectoryTaxonomyReader over the given DirectoryTaxonomyWriter (for NRT). |
DirectoryTaxonomyReader(Directory) | Open for reading a taxonomy stored in a given Lucene.Net.Facet.Taxonomy.Directory.DirectoryTaxonomyReader.Directory. |
Properties
Name | Description |
---|---|
CommitUserData | |
Count |
Methods
Name | Description |
---|---|
Dispose() | |
DoClose() | |
DoOpenIfChanged() | |
GetSurrogateId() | |
SetCacheSize(Int32) | SetCacheSize(Int32) controls the maximum allowed size of each of the caches
used by Currently, if the given size is smaller than the current size of a cache, it will not shrink, and rather we be limited to its current size. |