Class IndexAndTaxonomyReplicationHandler
A IReplicationHandler for replication of an index and taxonomy pair. See IReplicationHandler for more detail. This handler ensures that the search and taxonomy indexes are replicated in a consistent way.
Inheritance
Assembly: Lucene.Net.Replicator.dll
Syntax
public class IndexAndTaxonomyReplicationHandler : object, IReplicationHandler
Remarks
NOTE: If you intend to recreate a taxonomy index, you should make sure to reopen an IndexSearcher and TaxonomyReader pair via the provided callback, to guarantee that both indexes are in sync. This handler does not prevent replicating such index and taxonomy pairs, and if they are reopened by a different thread, unexpected errors can occur, as well as inconsistency between the taxonomy and index readers.
@lucene.experimental
Constructors
Name | Description |
---|---|
IndexAndTaxonomyReplicationHandler(Directory, Directory, Func<Nullable<Boolean>>) | Constructor with the given index directory and callback to notify when the indexes were updated. |
Fields
Name | Description |
---|---|
INFO_STREAM_COMPONENT | The component used to log messages to the Default InfoStream. |
Properties
Name | Description |
---|---|
CurrentRevisionFiles | |
CurrentVersion | |
InfoStream | Gets or sets the InfoStream to use for logging messages. |
Methods
Name | Description |
---|---|
RevisionReady(String, IDictionary<String, IList<RevisionFile>>, IDictionary<String, IList<String>>, IDictionary<String, Directory>) |