Table of Contents

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

localDir DirectoryInfo
mainDir DirectoryInfo
lockFactory ILockFactory
loggerFactory ILoggerFactory

Methods

CreateDirectory(LuceneIndex, bool)

protected override Directory CreateDirectory(LuceneIndex luceneIndex, bool forceUnlock)

Parameters

luceneIndex LuceneIndex
forceUnlock bool

Returns

Directory

Dispose(bool)

Disposes the instance

protected override void Dispose(bool disposing)

Parameters

disposing bool

If the call is coming from Dispose