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!
Afficher le fichier Open project: apache/lucenenet Class Usage Examples

Méthodes publiques

Свойство Type Description
infos SegmentInfos

Méthodes publiques

Méthode 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

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

Method Details

IndexSplitter() public méthode

public IndexSplitter ( DirectoryInfo dir ) : Lucene.Net.Store
dir System.IO.DirectoryInfo
Résultat Lucene.Net.Store

ListSegments() public méthode

public ListSegments ( ) : void
Résultat void

Main() public static méthode

public static Main ( string args ) : void
args string
Résultat void

Remove() public méthode

public Remove ( string segs ) : void
segs string
Résultat void

Split() public méthode

public Split ( DirectoryInfo destDir, string segs ) : void
destDir System.IO.DirectoryInfo
segs string
Résultat void

Property Details

infos public_oe property

public SegmentInfos,Lucene.Net.Index infos
Résultat SegmentInfos