Plucen...h::Hits(3pm)

πŸ“¦
version 1.25 Β· 2 versions
  • 1.25 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.25 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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