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 SourceIndexSplitter(DirectoryInfo)
Declaration
public IndexSplitter(DirectoryInfo dir)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | dir |
Properties
| Improve this Doc View SourceInfos
Declaration
public SegmentInfos Infos { get; set; }
Property Value
Type | Description |
---|---|
SegmentInfos |
Methods
| Improve this Doc View SourceListSegments()
Declaration
public virtual void ListSegments()
Main(String[])
Declaration
public static void Main(string[] args)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | args |
Remove(String[])
Declaration
public virtual void Remove(string[] segs)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | segs |
Split(DirectoryInfo, String[])
Declaration
public virtual void Split(DirectoryInfo destDir, string[] segs)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | destDir | |
System.String[] | segs |