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::Field

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

NAME

Plucene::Document::Field - A field in a Plucene::Document


SYNOPSIS

        my $field = Plucene::Document::Field->Keyword($name, $string);
        my $field = Plucene::Document::Field->Text($name, $string);
        my $field = Plucene::Document::Field->UnIndexded($name, $string);
        my $field = Plucene::Document::Field->UnStored($name, $string);


DESCRIPTION

Each Plucene::Document is made up of Plucene::Document::Field objects. Each of these fields can be stored, indexed or tokenised.


FIELDS

name

Returns the name of the field.

string

Returns the value of the field.

is_stored

Returns true if the field is or will be stored, or false if it was created with UnStored.

is_indexed

Returns true if the field is or will be indexed, or false if it was created with UnIndexed.

is_tokenized

Returns true if the field is or will be tokenized, or false if it was created with UnIndexed or Keyword.


METHODS

Keyword

        my $field = Plucene::Document::Field->Keyword($name, $string);

This will make a new Plucene::Document::Field object that is stored and indexed, but not tokenised.


=cut

sub Keyword { my ($self, $name, $string) = @_; return $self->new({ name => $name, string => $string, is_stored => 1, is_indexed => 1, is_tokenized => 0 }); }

UnIndexed

        my $field = Plucene::Document::Field->UnIndexded($name, $string);

This will make a new Plucene::Document::Field object that is stored, but not indexed or tokenised.


=cut

sub UnIndexed { my ($self, $name, $string) = @_; return $self->new({ name => $name, string => $string, is_stored => 1, is_indexed => 0, is_tokenized => 0 }); }

Text

        my $field = Plucene::Document::Field->Text($name, $string);

This will make a new Plucene::Document::Field object that is stored, indexed and tokenised.


=cut

sub Text { my ($self, $name, $string) = @_; return $self->new({ name => $name, string => $string, is_stored => 1, is_indexed => 1, is_tokenized => 1 }); }

UnStored

        my $field = Plucene::Document::Field->UnStored($name, $string);

This will make a new Plucene::Document::Field object that isn't stored, but is indexed and tokenised.

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