Plucene::Search::Hits(3pm)

Plucene::Search::Hits3pm

A list of ranked documents

Usage

        my $hits = Plucene::Search::Hits->new;
        my     $doc = $hits->doc($n);
        my   $score = $hits->score($n);
        my $hit_doc = $hits->hit_doc($n);

Overview

This is a list of ranked documents, used to hold search results.

Methods

new

        my $hits = Plucene::Search::Hits->new;

query / searcher / filter / length / hit_docs / first / last / num_docs / max_docs

Get / set these attributes.

doc

        my $doc = $hits->doc($n);

Returns the nth document.

score

        my $score = $hits->score($n);

The score of the nth document.

hit_doc

        my $hit_doc = $hits->hit_doc($n);

Returns the nth hit document.

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.