{
    "mode": "perldoc",
    "parameter": "Plucene::Search::DateFilter",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ASearch%3A%3ADateFilter/json",
    "generated": "2026-06-14T05:28:23Z",
    "synopsis": "my $filter = Plucene::Search::DateFilter->new({\nfield => \"date\",\nfrom  => Time::Piece $from,\nto    => Time::Piece $to\n})\nmy $hits = $searcher->search($query, $filter);",
    "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": []
        }
    },
    "summary": "Plucene::Search::DateFilter - Restrict searches to given time periods",
    "flags": [],
    "examples": [],
    "see_also": []
}