Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class IndexSplitter

    Command-line tool that enables listing segments in an index, copying specific segments to another index, and deleting segments from an index.

    This tool does file-level copying of segments files. This means it's unable to split apart a single segment into multiple segments. For example if your index is a single segment, this tool won't help. Also, it does basic file-level copying (using simple Stream) so it will not work with non FSDirectory Directory impls.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk

    You can easily accidentally remove segments from your index so be careful!

    Inheritance
    System.Object
    IndexSplitter
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.Misc.dll
    Syntax
    public class IndexSplitter

    Constructors

    | Improve this Doc View Source

    IndexSplitter(DirectoryInfo)

    Declaration
    public IndexSplitter(DirectoryInfo dir)
    Parameters
    Type Name Description
    System.IO.DirectoryInfo dir

    Properties

    | Improve this Doc View Source

    Infos

    Declaration
    public SegmentInfos Infos { get; set; }
    Property Value
    Type Description
    Lucene.Net.Index.SegmentInfos

    Methods

    | Improve this Doc View Source

    ListSegments()

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

    Main(String[])

    Declaration
    public static void Main(string[] args)
    Parameters
    Type Name Description
    System.String[] args
    | Improve this Doc View Source

    Remove(ICollection<String>)

    Declaration
    public virtual void Remove(ICollection<string> segs)
    Parameters
    Type Name Description
    System.Collections.Generic.ICollection<System.String> segs
    | Improve this Doc View Source

    Split(DirectoryInfo, ICollection<String>)

    Declaration
    public virtual void Split(DirectoryInfo destDir, ICollection<string> segs)
    Parameters
    Type Name Description
    System.IO.DirectoryInfo destDir
    System.Collections.Generic.ICollection<System.String> segs
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.