Plucen...h::Hits(3pm)
π Plucen...h::Hits(3pm) π
okay bestie, welcome to the manual page for Plucene::Search::Hits β a Plucene::Search::Hits situation, straight out of the Perl docs π
no cap
β¨ NAME β¨
Plucene::Search::Hits β literally just a list of ranked documents π¦ that's the whole vibe
πΈ SYNOPSIS πΈ
here's the tea, copied exactly, don't @ me:
my $hits = Plucene::Search::Hits->new;
my $doc = $hits->doc($n);
my $score = $hits->score($n);
my $hit_doc = $hits->hit_doc($n);
three lil calls, three lil moments of main character energy β¨
π DESCRIPTION π
So likeβ¦ this is a list of ranked documents π It's the thing that holds your search results. That's it, that's the whole job, and it ate. It's giving "quietly essential", honestly π
π«Ά METHODS π«Ά
β¨ new β¨
make a fresh one, bestie:
my $hits = Plucene::Search::Hits->new;
π query / searcher / filter / length / hit_docs / first / last / num_docs / max_docs π
Get / set these attributes. That's the whole thing β getters and setters, nine of them, all together like a lil squad π§ lowkey iconic that they all share one heading fr fr
π doc π
my $doc = $hits->doc($n);
Returns the *n*th document π hand it the number, get the doc back, no drama.
β score β
my $score = $hits->score($n);
The score of the *n*th document π how much the search fw it, basically.
π¦ hit_doc π¦
my $hit_doc = $hits->hit_doc($n);
Returns the *n*th hit document β¨ (yes it's a different thing from doc, they're both here, we don't merge them, periodt)
and that's the page!! π documented by the User Contributed Perl Documentation girlies, running on perl v5.36.0, dated 2022-12-04, and yeah the module name really does render as Plucen...h::Hits(3pm) β that's not a typo I invented, that's what it says π slay bestie, go read some search results π«Ά
π¦ where this page comes from
- debian bookworm: libplucene-perl 1.25-5
- debian trixie: libplucene-perl 1.25-5
- ubuntu noble: libplucene-perl 1.25-5
- ubuntu resolute: libplucene-perl 1.25-5
- ubuntu stonking: libplucene-perl 1.25-5
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms