{
    "content": [
        {
            "type": "text",
            "text": "# Plucene::Search::HitCollector (perldoc)\n\n## NAME\n\nPlucene::Search::HitCollector\n\n## SYNOPSIS\n\n# used in conjunction with the IndexSearcher\nmy $searcher = Plucene::Search::IndexSearcher->new($DIRECTORY);\nmy $hc = Plucene::Search::HitCollector->new( collect =>\nsub {\nmy ($self, $doc, $score) = @;\n...\n});\n$searcher->searchhc($QUERY, $hc);\n\n## DESCRIPTION\n\nThis is used in conjunction with the IndexSearcher, in that whenever a non-zero scoring document\nis found, the subref with with the HitCollector was made will get called.\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::Search::HitCollector",
        "section": "",
        "mode": "perldoc",
        "summary": "Plucene::Search::HitCollector",
        "synopsis": "# used in conjunction with the IndexSearcher\nmy $searcher = Plucene::Search::IndexSearcher->new($DIRECTORY);\nmy $hc = Plucene::Search::HitCollector->new( collect =>\nsub {\nmy ($self, $doc, $score) = @;\n...\n});\n$searcher->searchhc($QUERY, $hc);",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 12,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Plucene::Search::HitCollector\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "# used in conjunction with the IndexSearcher\n\nmy $searcher = Plucene::Search::IndexSearcher->new($DIRECTORY);\n\nmy $hc = Plucene::Search::HitCollector->new( collect =>\nsub {\nmy ($self, $doc, $score) = @;\n...\n});\n\n$searcher->searchhc($QUERY, $hc);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This is used in conjunction with the IndexSearcher, in that whenever a non-zero scoring document\nis found, the subref with with the HitCollector was made will get called.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new\nmy $hc = Plucene::Search::HitCollector->new( collect =>\nsub {\nmy ($self, $doc, $score) = @;\n...\n});\n\nThis will create a new Plucene::Search::HitCollector with the passed subref.\n\ncollect\nThis is called once for every non-zero scoring document, with the document number and its score.\n",
                "subsections": []
            }
        }
    }
}