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

Plucene::Index::SegmentTermDocs - Segment term docs

        my $seg_term_docs = Plucene::Index::SegmentTermDocs
                ->new(Plucene::Index::SegmentReader $seg_reader);
        
        $seg_term_docs->seek($term);
        $seg_term_docs->next;
        $seg_term_docs->read;
        $seg_term_docs->skip_to($target);

This is the segment term docs class.

        my $seg_term_docs = Plucene::Index::SegmentTermDocs
                ->new(Plucene::Index::SegmentReader $seg_reader);

This will create a new Plucene::Index::SegmentTermDocs object with the passed segment reader.

Get / set these attributes.

        $seg_term_docs->seek($term);

By default this does nothing. You may wish to override it to do something.

        $seg_term_docs->next;

        $seg_term_docs->read;

        $seg_term_docs->skip_to($target);
2022-12-04 perl v5.36.0