NAME

Plucene::Index::SegmentMerger - the Segment merger

SYNOPSIS

my $merger = Plucene::Index::SegmentMerger->new();

$merger->add(Plucene::Index::SegmentReader $reader);
$merger->merge;

DESCRIPTION

This is the segment merger class.

METHODS

new

my $merger = Plucene::Index::SegmentMerger->new();

This will create a new Plucene::Index::SegmentMerger object.

add

$merger->add(Plucene::Index::SegmentReader $reader);

segment_reader

merge

$merger->merge;

Perform the merging. After the merge, there will be no readers left stored in the merger object.