Class SyncedFileSystemDirectoryFactory
- Namespace
- Examine.Lucene.Directories
- Assembly
- Examine.Lucene.dll
A directory factory that replicates the 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 SyncedFileSystemDirectoryFactory : FileSystemDirectoryFactory, IDirectoryFactory, IDisposable
- Inheritance
-
SyncedFileSystemDirectoryFactory
- Implements
- Inherited Members
Remarks
By default, Examine configures the local directory to be the %temp% folder.
Constructors
SyncedFileSystemDirectoryFactory(DirectoryInfo, DirectoryInfo, ILockFactory, ILoggerFactory)
public SyncedFileSystemDirectoryFactory(DirectoryInfo localDir, DirectoryInfo mainDir, ILockFactory lockFactory, ILoggerFactory loggerFactory)
Parameters
localDirDirectoryInfomainDirDirectoryInfolockFactoryILockFactoryloggerFactoryILoggerFactory
Methods
CreateDirectory(LuceneIndex, bool)
protected override Directory CreateDirectory(LuceneIndex luceneIndex, bool forceUnlock)
Parameters
luceneIndexLuceneIndexforceUnlockbool
Returns
- Directory
Dispose(bool)
Disposes the instance
protected override void Dispose(bool disposing)
Parameters
disposingboolIf the call is coming from Dispose