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
Implements
Namespace: Lucene.Net.Replicator
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.
Constructors
| Improve this Doc View SourceIndexAndTaxonomyReplicationHandler(Directory, Directory, Func<Nullable<Boolean>>)
Constructor with the given index directory and callback to notify when the indexes were updated.
Declaration
public IndexAndTaxonomyReplicationHandler(Directory indexDirectory, Directory taxonomyDirectory, Func<bool?> callback)
Parameters
Type | Name | Description |
---|---|---|
Directory | indexDirectory | |
Directory | taxonomyDirectory | |
Func<System.Nullable<System.Boolean>> | callback |
Fields
| Improve this Doc View SourceINFO_STREAM_COMPONENT
The component used to log messages to the Default InfoStream.
Declaration
public const string INFO_STREAM_COMPONENT = null
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourceCurrentRevisionFiles
Declaration
public virtual IDictionary<string, IList<RevisionFile>> CurrentRevisionFiles { get; }
Property Value
Type | Description |
---|---|
IDictionary<System.String, IList<RevisionFile>> |
CurrentVersion
Declaration
public virtual string CurrentVersion { get; }
Property Value
Type | Description |
---|---|
System.String |
InfoStream
Gets or sets the InfoStream to use for logging messages.
Declaration
public virtual InfoStream InfoStream { get; set; }
Property Value
Type | Description |
---|---|
InfoStream |
Methods
| Improve this Doc View SourceRevisionReady(String, IDictionary<String, IList<RevisionFile>>, IDictionary<String, IList<String>>, IDictionary<String, Directory>)
Declaration
public virtual void RevisionReady(string version, IDictionary<string, IList<RevisionFile>> revisionFiles, IDictionary<string, IList<string>> copiedFiles, IDictionary<string, Directory> sourceDirectory)
Parameters
Type | Name | Description |
---|---|---|
System.String | version | |
IDictionary<System.String, IList<RevisionFile>> | revisionFiles | |
IDictionary<System.String, IList<System.String>> | copiedFiles | |
IDictionary<System.String, Directory> | sourceDirectory |