Plucene::Search::DateFilter(3pm) - phpMan

Command: man perldoc info search(apropos)  


Plucene::Search::DateFilter(3pmUser Contributed Perl DocumentatioPlucene::Search::DateFilter(3pm)



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 Plucene::Document::DateSerializer. 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 specify-
       ing which documents are included in the range.



perl v5.8.8                                 2008-03-01           Plucene::Search::DateFilter(3pm)

Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-25 00:55 @38.107.179.240 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!