Class SearcherTaxonomyManager
Manages near-real-time reopen of both an IndexSearcher and a TaxonomyReader.
NOTE: If you call ReplaceTaxonomy(Directory) then you must open a new SearcherTaxonomyManager afterwards.
Inheritance
System.Object
SearcherTaxonomyManager
Inherited Members
Assembly: DistributedLucene.Net.Facet.dll
Syntax
public class SearcherTaxonomyManager : ReferenceManager<SearcherTaxonomyManager.SearcherAndTaxonomy>
Constructors
Name | Description |
---|---|
SearcherTaxonomyManager(IndexWriter, Boolean, SearcherFactory, DirectoryTaxonomyWriter) | Creates near-real-time searcher and taxonomy reader from the corresponding writers. |
SearcherTaxonomyManager(Directory, Directory, SearcherFactory) | Creates search and taxonomy readers over the corresponding directories. NOTE: you should only use this constructor if you commit and call MaybeRefresh() (on the ReaderManager) in the same thread. Otherwise it could lead to an unsync'd IndexSearcher and TaxonomyReader pair. |