Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Plucene::Document

Name Plucene::Document
Version
Located at /usr/share/perl5
File /usr/share/perl5/Plucene/Document.pm
Is Core No
Search CPAN for this module Plucene::Document
Documentation Plucene::Document
Module Details Plucene::Document

NAME

Plucene::Document - The unit of indexing and searching


SYNOPSIS

        my $document = Plucene::Document->new;
        $document->add( Plucene::Document::Field $field);
        my Plucene::Document::Field $field = $document->get($field_name);

        my Plucene::Document::Fields @fields = $document->fields;

=head1 DESCRIPTION

Documents are the unit of indexing and search, and each document is a set of fields. Each field has a name and a textual value.

A field may be stored with the document, in which case it is returned with search hits on the document. Thus each document should typically contain stored fields which uniquely identify it.


METHODS

get

        my Plucene::Document::Field $field = $document->get($field_name);

This returns the Plucene::Document::Field object of the field with the given name if any exist in this document, or null.

add

        $document->add( Plucene::Document::Field $field);

This will add a field to the document.

fields

        my Plucene::Document::Field @fields = $document->fields;

This returns an list of all the fields in a document.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026