Class SegmentMerger
The SegmentMerger class combines two or more Segments, represented by an IndexReader (Add(IndexReader), into a single Segment. After adding the appropriate readers, call the merge method to combine the segments.
If the compoundFile flag is set, then the segments will be merged into a compound file.
Inheritance
System.Object
SegmentMerger
Namespace:
Assembly: Lucene.Net.NetCore.dll
Syntax
public sealed class SegmentMerger : object
Constructors
Name | Description |
---|---|
SegmentMerger(Directory, String) | This ctor used only by test code. |
Methods
Name | Description |
---|---|
Add(IndexReader) | Add an IndexReader to the collection of readers that are to be merged |
CreateCompoundFile(String) | |
Merge() | Merges the readers specified by the Add(IndexReader) method into the directory passed to the constructor |