# perldoc > Plucene::Document::Field

---
type: CommandReference
command: Plucene::Document::Field
mode: perldoc
section:
source: perldoc
---

## Quick Reference

- `Plucene::Document::Field->Keyword($name, $string)` — stored + indexed, not tokenized
- `Plucene::Document::Field->Text($name, $string)` — stored + indexed + tokenized
- `Plucene::Document::Field->UnIndexed($name, $string)` — stored only, not indexed or tokenized
- `Plucene::Document::Field->UnStored($name, $string)` — indexed + tokenized, not stored
- `$field->name` — returns field name
- `$field->string` — returns field value
- `$field->is_stored` — true if stored
- `$field->is_indexed` — true if indexed
- `$field->is_tokenized` — true if tokenized

## Name

Plucene::Document::Field - A field in a [Plucene::Document](http://localhost/phpMan.php/perldoc/Plucene%3A%3ADocument/markdown)

## Synopsis

perl
my $field = Plucene::Document::Field->Keyword($name, $string);
my $field = Plucene::Document::Field->Text($name, $string);
my $field = Plucene::Document::Field->UnIndexed($name, $string);
my $field = Plucene::Document::Field->UnStored($name, $string);
## Description

Each [Plucene::Document](http://localhost/phpMan.php/perldoc/Plucene%3A%3ADocument/markdown) is made up of `Plucene::Document::Field` objects. Each field can be stored, indexed, or tokenized.

## 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; false if created with `UnStored`.
- `is_indexed` — Returns true if the field is or will be indexed; false if created with `UnIndexed`.
- `is_tokenized` — Returns true if the field is or will be tokenized; false if created with `UnIndexed` or `Keyword`.

## Methods

### `Keyword`

perl
my $field = Plucene::Document::Field->Keyword($name, $string);
Creates a new field that is stored and indexed, but not tokenized.

### `UnIndexed`

perl
my $field = Plucene::Document::Field->UnIndexed($name, $string);
Creates a new field that is stored, but not indexed or tokenized.

### `Text`

perl
my $field = Plucene::Document::Field->Text($name, $string);
Creates a new field that is stored, indexed, and tokenized.

### `UnStored`

perl
my $field = Plucene::Document::Field->UnStored($name, $string);
Creates a new field that is not stored, but is indexed and tokenized.

## See Also

- [Plucene::Document](http://localhost/phpMan.php/perldoc/Plucene%3A%3ADocument/markdown)