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.
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);
To install Plucene, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plucene
CPAN shell
perl -MCPAN -e shell install Plucene
For more information on module installation, please visit the detailed CPAN module installation guide.