Table of Contents

Class ExamineTaxonomyReplicator

Namespace
Examine.Lucene
Assembly
Examine.Lucene.dll

Used to replicate an index to a destination directory

public class ExamineTaxonomyReplicator : IDisposable
Inheritance
ExamineTaxonomyReplicator
Implements
Inherited Members

Remarks

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

Constructors

ExamineTaxonomyReplicator(ILoggerFactory, LuceneIndex, Directory, Directory, DirectoryInfo)

Constructor

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

Parameters

loggerFactory ILoggerFactory
sourceIndex LuceneIndex
destinationDirectory Directory
destinationTaxonomyDirectory Directory
tempStorage DirectoryInfo

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 a thread that will replicate the index on a schedule

public void StartIndexReplicationOnSchedule(int milliseconds)

Parameters

milliseconds int

Interval

Exceptions

InvalidOperationException