DOKK / manpages / debian 12 / libplucene-perl / Plucene::Index::SegmentMerger.3pm.en
Plucene::Index::SegmentMerger(3pm) User Contributed Perl Documentation Plucene::Index::SegmentMerger(3pm)

Plucene::Index::SegmentMerger - 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.

2022-12-04 perl v5.36.0