Class IndexAndTaxonomyReplicationHandler

  • All Implemented Interfaces:
    ReplicationClient.ReplicationHandler

    public class IndexAndTaxonomyReplicationHandler
    extends Object
    implements ReplicationClient.ReplicationHandler
    A ReplicationClient.ReplicationHandler for replication of an index and taxonomy pair. See IndexReplicationHandler for more detail. This handler ensures that the search and taxonomy indexes are replicated in a consistent way.

    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.

    See Also:
    IndexReplicationHandler
    WARNING: This API is experimental and might change in incompatible ways in the next release.