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.

    @lucene.experimental You can easily accidentally remove segments from your index so be careful!

    Inheritance
    System.Object
    IndexSplitter
    Namespace: Lucene.Net.Index
    Assembly: Lucene.Net.Misc.dll
    Syntax
    public class IndexSplitter : object

    Constructors

    | Improve this Doc View Source

    IndexSplitter(DirectoryInfo)

    Declaration
    public IndexSplitter(DirectoryInfo dir)
    Parameters
    Type Name Description
    DirectoryInfo dir

    Properties

    | Improve this Doc View Source

    Infos

    Declaration
    public SegmentInfos Infos { get; set; }
    Property Value
    Type Description
    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(String[])

    Declaration
    public virtual void Remove(string[] segs)
    Parameters
    Type Name Description
    System.String[] segs
    | Improve this Doc View Source

    Split(DirectoryInfo, String[])

    Declaration
    public virtual void Split(DirectoryInfo destDir, string[] segs)
    Parameters
    Type Name Description
    DirectoryInfo destDir
    System.String[] segs
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)