logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       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.

perl v5.36.0                                       2022-12-04                         Plucene::Search::Hits(3pm)

Name

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

Synopsis

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

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

See Also