Plucen...opDocs(3pm)
π Plucene::Search::TopDocs β the top hits for a query π
okay so bestie, welcome to Plucene::Search::TopDocs π
this is a Perl module, it lives in the 3pm manual section, and it's filed under User Contributed Perl Documentation. it's giving "small but mighty" energy ngl πΈ
basically this lil cutie is the top hits for a query. that's the whole vibe. it holds your winners and tells you how many of them there are. no cap.
β¨ SYNOPSIS β¨
my $total_hits = $top_docs->total_hits;
my @score_docs = $top_docs->score_docs(@other);
look at that. two whole lines. she's compact, she's iconic, she ate π
π¦ DESCRIPTION π¦
okay soβ¦ the description section is literally empty π like, nothing. zero. the void. the author said "the name says it all" and dipped. and honestly? respect π
so we move straight to the methods, which is where the actual content lives. periodt.
π METHODS π
π total_hits
my $total_hits = $top_docs->total_hits;
this one returns the total number of hits for the query β¨ that's it, that's the whole job, and she does it flawlessly. a queen of scope. no notes.
π©· score_docs
my @score_docs = $top_docs->score_docs(@other);
and this one hands you the top hits for the query π₯ you pass in @other, you get back your @score_docs. the cream of the crop. the main characters. the ones that made it onto the list π
lowkey reminder: the SYNOPSIS showsscore_docsbeing called with@otherand returning@score_docs, andtotal_hitsreturning a scalar. copy that exactly, don't freestyle, iykyk π
and that's the page!! shoutout to the perl gang β this was documented under perl v5.36.0, dated 2022-12-04, and yes bestie that footer info absolutely counts as lore π«Ά go forth and query, you're gonna slay β¨π π
π¦ 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