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

Plucene::Index::FieldsReader - read Fields in a Document

        my $reader = Plucene::Index::FieldsReader->new(
                $dir_name, $segment, $field_infos);
        my Plucene::Document $doc = $reader->doc($offset);
        my $size = $reader->size;

This class gives access to documents within the index.

        my $reader = Plucene::Index::FieldsReader->new(
                $dir_name, $segment, $field_infos);

This will create a new Plucene::Index::FieldsReader with the passed in directory name, segment and field infos.

        my $size = $reader->size;

This returns the size.

        my Plucene::Document $doc = $reader->doc($offset);

This will return the Plucene::Document object found at the passed in position.

2022-12-04 perl v5.36.0