{
    "content": [
        {
            "type": "text",
            "text": "# Plucene::Document (perldoc)\n\n## NAME\n\nPlucene::Document - The unit of indexing and searching\n\n## SYNOPSIS\n\nmy $document = Plucene::Document->new;\n$document->add( Plucene::Document::Field $field);\nmy Plucene::Document::Field $field = $document->get($fieldname);\nmy Plucene::Document::Fields @fields = $document->fields;\n\n## DESCRIPTION\n\nDocuments are the unit of indexing and search, and each document is a set of fields. Each field\nhas a name and a textual value.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **METHODS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Plucene::Document",
        "section": "",
        "mode": "perldoc",
        "summary": "Plucene::Document - The unit of indexing and searching",
        "synopsis": "my $document = Plucene::Document->new;\n$document->add( Plucene::Document::Field $field);\nmy Plucene::Document::Field $field = $document->get($fieldname);\nmy Plucene::Document::Fields @fields = $document->fields;",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 7,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 16,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Plucene::Document - The unit of indexing and searching\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $document = Plucene::Document->new;\n\n$document->add( Plucene::Document::Field $field);\nmy Plucene::Document::Field $field = $document->get($fieldname);\n\nmy Plucene::Document::Fields @fields = $document->fields;\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Documents are the unit of indexing and search, and each document is a set of fields. Each field\nhas a name and a textual value.\n\nA field may be stored with the document, in which case it is returned with search hits on the\ndocument. Thus each document should typically contain stored fields which uniquely identify it.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "get\nmy Plucene::Document::Field $field = $document->get($fieldname);\n\nThis returns the Plucene::Document::Field object of the field with the given name if any exist\nin this document, or null.\n\nadd\n$document->add( Plucene::Document::Field $field);\n\nThis will add a field to the document.\n\nfields\nmy Plucene::Document::Field @fields = $document->fields;\n\nThis returns an list of all the fields in a document.\n",
                "subsections": []
            }
        }
    }
}