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

Plucene::Index::DocumentWriter - the document writer

        my $writer = Plucene::Index::DocumentWriter
                ->new($directory, $analyser, $max_field_length);
        $writer->add_document($segment, $doc);

This is the document writer class.

METHODS

        my $writer = Plucene::Index::DocumentWriter
                ->new($directory, $analyser, $max_field_length);

This will create a new Plucene::Index::DocumentWriter object with the passed in arguments.

        $writer->add_document($segment, $doc);
2018-04-02 perl v5.26.1