Table of Contents

Class ExamineReplicator

Namespace
Examine.Lucene
Assembly
Examine.Lucene.dll

Used to replicate an index to a destination directory

public class ExamineReplicator : IDisposable
Inheritance
ExamineReplicator
Implements
Inherited Members

Remarks

The destination directory must not have any active writers open to it.

Constructors

ExamineReplicator(ILoggerFactory, LuceneIndex, Directory, DirectoryInfo)

Creates an instance of ExamineReplicator

public ExamineReplicator(ILoggerFactory loggerFactory, LuceneIndex sourceIndex, Directory destinationDirectory, DirectoryInfo tempStorage)

Parameters

loggerFactory ILoggerFactory

The logger factory

sourceIndex LuceneIndex

The source index

destinationDirectory Directory

The destination directory

tempStorage DirectoryInfo

The temp storage directory info

Methods

Dispose()

Disposes the instance

public void Dispose()

Dispose(bool)

Disposes the instance

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

If the call is coming from Dispose

ReplicateIndex()

Will sync from the active index to the destination directory

public void ReplicateIndex()

StartIndexReplicationOnSchedule(int)

Starts index replication

public void StartIndexReplicationOnSchedule(int milliseconds)

Parameters

milliseconds int

Exceptions

InvalidOperationException