The segment merger
my $merger = Plucene::Index::SegmentMerger->new(); $merger->add(Plucene::Index::SegmentReader $reader); $merger->merge;
This is the segment merger class.
my $merger = Plucene::Index::SegmentMerger->new();
This will create a new Plucene::Index::SegmentMerger object.
$merger->add(Plucene::Index::SegmentReader $reader);
$merger->merge;
Perform the merging. After the merge, there will be no readers left stored in the merger object.