C# Class Lucene.Net.Index.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 FileInfo) so it will not work with non FSDirectory Directory impls.

@lucene.experimental You can easily accidentally remove segments from your index so be careful!
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
infos SegmentInfos

Public Methods

Method Description
IndexSplitter ( DirectoryInfo dir ) : Lucene.Net.Store
ListSegments ( ) : void
Main ( string args ) : void
Remove ( string segs ) : void
Split ( DirectoryInfo destDir, string segs ) : void

Private Methods

Method Description
CopyFile ( FileInfo src, FileInfo dst ) : void
GetIdx ( string name ) : int
GetInfo ( string name ) : Lucene.Net.Index.SegmentCommitInfo

Method Details

IndexSplitter() public method

public IndexSplitter ( DirectoryInfo dir ) : Lucene.Net.Store
dir System.IO.DirectoryInfo
return Lucene.Net.Store

ListSegments() public method

public ListSegments ( ) : void
return void

Main() public static method

public static Main ( string args ) : void
args string
return void

Remove() public method

public Remove ( string segs ) : void
segs string
return void

Split() public method

public Split ( DirectoryInfo destDir, string segs ) : void
destDir System.IO.DirectoryInfo
segs string
return void

Property Details

infos public_oe property

public SegmentInfos,Lucene.Net.Index infos
return SegmentInfos