{
    "content": [
        {
            "type": "text",
            "text": "# Plucene::Search::DateFilter (perldoc)\n\n## NAME\n\nPlucene::Search::DateFilter - Restrict searches to given time periods\n\n## SYNOPSIS\n\nmy $filter = Plucene::Search::DateFilter->new({\nfield => \"date\",\nfrom  => Time::Piece $from,\nto    => Time::Piece $to\n})\nmy $hits = $searcher->search($query, $filter);\n\n## DESCRIPTION\n\nThis class can restrict the results of a search to a set of dates. This requires a field to have\nbeen indexed using Plucene::Document::DateSerializer. See the documentation for that module for\nhow to do this.\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::DateFilter",
        "section": "",
        "mode": "perldoc",
        "summary": "Plucene::Search::DateFilter - Restrict searches to given time periods",
        "synopsis": "my $filter = Plucene::Search::DateFilter->new({\nfield => \"date\",\nfrom  => Time::Piece $from,\nto    => Time::Piece $to\n})\nmy $hits = $searcher->search($query, $filter);",
        "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": 4,
                "subsections": []
            },
            {
                "name": "METHODS",
                "lines": 13,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Plucene::Search::DateFilter - Restrict searches to given time periods\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "my $filter = Plucene::Search::DateFilter->new({\nfield => \"date\",\nfrom  => Time::Piece $from,\nto    => Time::Piece $to\n})\nmy $hits = $searcher->search($query, $filter);\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "This class can restrict the results of a search to a set of dates. This requires a field to have\nbeen indexed using Plucene::Document::DateSerializer. See the documentation for that module for\nhow to do this.\n",
                "subsections": []
            },
            "METHODS": {
                "content": "new\nmy $filter = Plucene::Search::DateFilter->new({\nfield => \"date\",\nfrom  => Time::Piece $from,\nto    => Time::Piece $to\n})\n\nThis creates a new filter. Either of \"from\" or \"to\" are optional.\n\nbits\nThis is used by the searcher to iterate over the documents and return a bitfield specifying\nwhich documents are included in the range.\n",
                "subsections": []
            }
        }
    }
}