Plucene::Search::DateFilter(3pm)

Plucene::Search::DateFilter3pm

Restrict searches to given time periods

Usage

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

Overview

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 specifying which documents are included in the range.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0
  4. 7–9
  5. 10–11
  6. 12–13

From libplucene-perl 1.25-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.