Tony Bowden > Plucene > Plucene::Index::DocumentWriter

Download:
Plucene-1.25.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  5
View/Report Bugs
Source  

NAME ^

Plucene::Index::DocumentWriter - the document writer

SYNOPSIS ^

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

        $writer->add_document($segment, $doc);

DESCRIPTION ^

This is the document writer class.

METHODS

new

        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.

add_document

        $writer->add_document($segment, $doc);
syntax highlighting: