Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Plucene::Search::DateFilter

Name Plucene::Search::DateFilter
Version
Located at /usr/share/perl5
File /usr/share/perl5/Plucene/Search/DateFilter.pm
Is Core No
Search CPAN for this module Plucene::Search::DateFilter
Documentation Plucene::Search::DateFilter
Module Details Plucene::Search::DateFilter

NAME

Plucene::Search::DateFilter - Restrict searches to given time periods


SYNOPSIS

        my $filter = Plucene::Search::DateFilter->new({
                field => "date",
                from  => Time::Piece $from,
                to    => Time::Piece $to
        })
        my $hits = $searcher->search($query, $filter);


DESCRIPTION

This class can restrict the results of a search to a set of dates. This requires a field to have been indexed using the Plucene::Document::DateSerializer manpage. See the documentation for that module for how to do this.


METHODS

new

        my $filter = Plucene::Search::DateFilter->new({
                field => "date",
                from  => Time::Piece $from,
                to    => Time::Piece $to
        })

This creates a new filter. Either of from or to are optional.

bits

This is used by the searcher to iterate over the documents and return a bitfield specifying which documents are included in the range.

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026