Plucene::Index::DocumentWriter - the document writer


Plucene documentation  | view source Contained in the Plucene distribution.

Index


NAME

Top

Plucene::Index::DocumentWriter - the document writer

SYNOPSIS

Top

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

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

DESCRIPTION

Top

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);


Plucene documentation  | view source Contained in the Plucene distribution.