Class SyncedTaxonomyFileSystemDirectoryFactory
- Namespace
- Examine.Lucene.Directories
- Assembly
- Examine.Lucene.dll
A directory factory that replicates the index and it's Taxonomy Index from main storage on initialization to another directory, then creates a lucene Directory based on that replicated index. A replication thread is spawned to then replicate the local index back to the main storage location.
public class SyncedTaxonomyFileSystemDirectoryFactory : FileSystemDirectoryFactory, IDirectoryFactory, IDisposable
- Inheritance
-
SyncedTaxonomyFileSystemDirectoryFactory
- Implements
- Inherited Members
Remarks
By default, Examine configures the local directory to be the %temp% folder.
Constructors
SyncedTaxonomyFileSystemDirectoryFactory(DirectoryInfo, DirectoryInfo, ILockFactory, ILoggerFactory)
public SyncedTaxonomyFileSystemDirectoryFactory(DirectoryInfo localDir, DirectoryInfo mainDir, ILockFactory lockFactory, ILoggerFactory loggerFactory)
Parameters
localDir
DirectoryInfomainDir
DirectoryInfolockFactory
ILockFactoryloggerFactory
ILoggerFactory
Methods
CreateDirectory(LuceneIndex, bool)
protected override Directory CreateDirectory(LuceneIndex luceneIndex, bool forceUnlock)
Parameters
luceneIndex
LuceneIndexforceUnlock
bool
Returns
- Directory
Dispose(bool)
Disposes the instance
protected override void Dispose(bool disposing)
Parameters
disposing
boolIf the call is coming from Dispose