Show / Hide Table of Contents

    Class IndexAndTaxonomyRevision

    A IRevision of a single index and taxonomy index files which comprises the list of files from both indexes. This revision should be used whenever a pair of search and taxonomy indexes need to be replicated together to guarantee consistency of both on the replicating (client) side.

    Inheritance
    System.Object
    IndexAndTaxonomyRevision
    Implements
    IRevision
    IComparable<IRevision>
    Namespace: Lucene.Net.Replicator
    Assembly: Lucene.Net.Replicator.dll
    Syntax
    public class IndexAndTaxonomyRevision : object, IRevision, IComparable<IRevision>
    Remarks
    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    Constructors

    | Improve this Doc View Source

    IndexAndTaxonomyRevision(IndexWriter, IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter)

    Constructor over the given IndexWriter. Uses the last IndexCommit found in the Directory managed by the given writer.

    Declaration
    public IndexAndTaxonomyRevision(IndexWriter indexWriter, IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter taxonomyWriter)
    Parameters
    Type Name Description
    IndexWriter indexWriter
    IndexAndTaxonomyRevision.SnapshotDirectoryTaxonomyWriter taxonomyWriter

    Fields

    | Improve this Doc View Source

    INDEX_SOURCE

    Declaration
    public const string INDEX_SOURCE = null
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    TAXONOMY_SOURCE

    Declaration
    public const string TAXONOMY_SOURCE = null
    Field Value
    Type Description
    System.String

    Properties

    | Improve this Doc View Source

    SourceFiles

    Declaration
    public virtual IDictionary<string, IList<RevisionFile>> SourceFiles { get; }
    Property Value
    Type Description
    IDictionary<System.String, IList<RevisionFile>>
    | Improve this Doc View Source

    Version

    Declaration
    public virtual string Version { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    CompareTo(IRevision)

    Declaration
    public virtual int CompareTo(IRevision other)
    Parameters
    Type Name Description
    IRevision other
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    CompareTo(String)

    Compares this IndexAndTaxonomyRevision to the given Lucene.Net.Replicator.IndexAndTaxonomyRevision.version.

    Declaration
    public virtual int CompareTo(string version)
    Parameters
    Type Name Description
    System.String version
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    Open(String, String)

    Declaration
    public virtual Stream Open(string source, string fileName)
    Parameters
    Type Name Description
    System.String source
    System.String fileName
    Returns
    Type Description
    Stream
    | Improve this Doc View Source

    Release()

    Declaration
    public virtual void Release()
    | Improve this Doc View Source

    RevisionFiles(IndexCommit, IndexCommit)

    Returns a map of the revision files from the given IndexCommits of the search and taxonomy indexes.

    Declaration
    public static IDictionary<string, IList<RevisionFile>> RevisionFiles(IndexCommit indexCommit, IndexCommit taxonomyCommit)
    Parameters
    Type Name Description
    IndexCommit indexCommit
    IndexCommit taxonomyCommit
    Returns
    Type Description
    IDictionary<System.String, IList<RevisionFile>>
    | Improve this Doc View Source

    RevisionVersion(IndexCommit, IndexCommit)

    Returns a representation of a revision's version from the given IndexCommits of the search and taxonomy indexes.

    Declaration
    public static string RevisionVersion(IndexCommit indexCommit, IndexCommit taxonomyCommit)
    Parameters
    Type Name Description
    IndexCommit indexCommit
    IndexCommit taxonomyCommit
    Returns
    Type Description
    System.String

    a representation of a revision's version from the given IndexCommits of the search and taxonomy indexes.

    Implements

    IRevision
    IComparable<>

    See Also

    IndexRevision
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)