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::FieldsWriter - writes Fields to a Document

Description

       This class add documents to the appropriate files.

Methods

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

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

   close
               $writer->close;

   add_document
               $writer->add_document(Plucene::Document $doc);

       This will add the passed Plucene::Document.

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

Name

       Plucene::Index::FieldsWriter - writes Fields to a Document

Synopsis

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

               $writer->add_document(Plucene::Document $doc);

See Also