logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       This class gives access to documents within the index.

Methods

new
               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.

   size
               my $size = $reader->size;

       This returns the size.

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

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

perl v5.36.0                                       2022-12-04                  Plucene::Index::FieldsReader(3pm)

Name

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

Synopsis

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

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

               my $size = $reader->size;

See Also