Plucene::Index::FieldsWriter - writes Fields to a Document
my $writer = Plucene::Index::FieldsWriter->new( $dir_name, $segment, $field_infos); $writer->add_document(Plucene::Document $doc);
This class add documents to the appropriate files.
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.
$writer->close;
$writer->add_document(Plucene::Document $doc);
This will add the passed Plucene::Document.
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.