# Plucene::Document::Field - A field in a Plucene::Document - perldoc - [phpMan]

## NAME
    [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown) - A field in a [Plucene::Document](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument/markdown)

## SYNOPSIS
            my $field = [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->Keyword($name, $string);
            my $field = [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->Text($name, $string);

            my $field = [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->UnIndexded($name, $string);
            my $field = [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->UnStored($name, $string);

## DESCRIPTION
    Each [Plucene::Document](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument/markdown) is made up of [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown) 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](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->Keyword($name, $string);

    This will make a new [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown) object that is stored and indexed, but not
    tokenised.

### UnIndexed
            my $field = [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->UnIndexded($name, $string);

    This will make a new [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown) object that is stored, but not indexed or
    tokenised.

### Text
            my $field = [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->Text($name, $string);

    This will make a new [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown) object that is stored, indexed and tokenised.

### UnStored
            my $field = [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown)->UnStored($name, $string);

    This will make a new [Plucene::Document::Field](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ADocument%3A%3AField/markdown) object that isn't stored, but is indexed and
    tokenised.

