{
    "mode": "perldoc",
    "parameter": "Plucene::Index::SegmentInfo",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3AIndex%3A%3ASegmentInfo/json",
    "generated": "2026-06-13T05:06:26Z",
    "synopsis": "my $segmentinfo = Plucene::Index::SegmentInfo->new;\n# get\nmy $name = $segmentinfo->name;\nmy $doccount = $segmentinfo->doccount;\nmy $dir = $segmentinfo->dir;\n# set\n$segmentinfo->name($newname);\n$segmentinfo->doccount($newdoccount);\n$segmentinfo->dir($newdir);",
    "sections": {
        "NAME": {
            "content": "Plucene::Index::SegmentInfo - Information on a Segment\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "my $segmentinfo = Plucene::Index::SegmentInfo->new;\n\n# get\nmy $name = $segmentinfo->name;\nmy $doccount = $segmentinfo->doccount;\nmy $dir = $segmentinfo->dir;\n\n# set\n$segmentinfo->name($newname);\n$segmentinfo->doccount($newdoccount);\n$segmentinfo->dir($newdir);\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This class holds information on a segment.\n\nThe index database is composed of 'segments' each stored in a separate file. When you add\ndocuments to the index, new segments may be created. You can compact the database and reduce the\nnumber of segments by optimizing it.\n",
            "subsections": []
        },
        "METHODS": {
            "content": "name / doccount / dir\nGet / set these attributes.\n",
            "subsections": []
        }
    },
    "summary": "Plucene::Index::SegmentInfo - Information on a Segment",
    "flags": [],
    "examples": [],
    "see_also": []
}