GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Plucene::Search::DateFilter(3) User Contributed Perl Documentation Plucene::Search::DateFilter(3)

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

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

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.

        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.

This is used by the searcher to iterate over the documents and return a bitfield specifying which documents are included in the range.
2005-09-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.