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 SourceIndexSplitter(DirectoryInfo)
Declaration
public IndexSplitter(DirectoryInfo dir)
Parameters
Type | Name | Description |
---|---|---|
System.IO.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 |
---|---|---|
System.IO.DirectoryInfo | destDir | |
System.String[] | segs |