Plucen...mScorer(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

✨ Plucene::Search::TermScorer ✨

okay so bestie, welcome to Plucene::Search::TermScorer(3pm) πŸ’– this is the little icon that handles scoring terms, and honestly? it's giving essential. let's get into it 🫢


🌸 NAME 🌸

Plucene::Search::TermScorer β€” score terms πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

first things first, she's a Plucene::Search::Scorer, okay? isa relationship confirmed, no cap:

# isa Plucene::Search::Scorer

$term_scorer->score($hc, $end);

πŸ¦‹ DESCRIPTION πŸ¦‹

so literally what this is: a Plucene::Search::Scorer subclass that exists specifically for scoring terms. that's the whole vibe. she inherits from Scorer, she specializes in terms, and she slays at it ✨


πŸ‘‘ METHODS πŸ‘‘

πŸ’œ term_docs / norms / weight / doc / docs / freqs / pointer / pointer_max / score_cache πŸ’œ

these are the attributes, bestie β€” get them, set them, live your truth:

  • term_docs
  • norms
  • weight
  • doc
  • docs
  • freqs
  • pointer
  • pointer_max
  • score_cache
get / set these attributes πŸ’–

🌈 score 🌈

the main character method fr fr:

$term_scorer->score($hc, $end);

and that's the whole page, gorgeous πŸŽ€ you understood the assignment πŸ’…βœ¨

this was pulled from perl v5.36.0, dated 2022-12-04 β€” shoutout to the Perl docs, periodt πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from