Constructor SearcherTaxonomyManager
SearcherTaxonomyManager(IndexWriter, Boolean, SearcherFactory, DirectoryTaxonomyWriter)
Creates near-real-time searcher and taxonomy reader from the corresponding writers.
Declaration
public SearcherTaxonomyManager(IndexWriter writer, bool applyAllDeletes, SearcherFactory searcherFactory, DirectoryTaxonomyWriter taxoWriter)
Parameters
Type | Name | Description |
---|---|---|
IndexWriter | writer | |
System.Boolean | applyAllDeletes | |
SearcherFactory | searcherFactory | |
DirectoryTaxonomyWriter | taxoWriter |
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.
Declaration
public SearcherTaxonomyManager(Directory indexDir, Directory taxoDir, SearcherFactory searcherFactory)
Parameters
Type | Name | Description |
---|---|---|
Directory | indexDir | |
Directory | taxoDir | |
SearcherFactory | searcherFactory |