DOKK / manpages / debian 12 / libplucene-perl / Plucene::Search::Hits.3pm.en
Plucene::Search::Hits(3pm) User Contributed Perl Documentation Plucene::Search::Hits(3pm)

Plucene::Search::Hits - A list of ranked documents

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

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

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

Get / set these attributes.

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

Returns the nth document.

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

The score of the nth document.

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

Returns the nth hit document.

2022-12-04 perl v5.36.0