Plucene::Index::FieldsWriter - writes Fields to a Document


Plucene documentation  | view source Contained in the Plucene distribution.

Index


NAME

Top

Plucene::Index::FieldsWriter - writes Fields to a Document

SYNOPSIS

Top

	my $writer = Plucene::Index::FieldsWriter->new(
		$dir_name, $segment, $field_infos);

	$writer->add_document(Plucene::Document $doc);

DESCRIPTION

Top

This class add documents to the appropriate files.

METHODS

Top

new

	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.

close

	$writer->close;

add_document

	$writer->add_document(Plucene::Document $doc);

This will add the passed Plucene::Document.


Plucene documentation  | view source Contained in the Plucene distribution.