Plucen...Scorer(3pm)
π Plucene::Search::BooleanScorer β a boolean scorer, bestie π
okay so this is Plucene::Search::BooleanScorer, from the Plucene::Search family, and it's literally a scoring class for boolean scorers. that's the whole vibe. it's giving "yes/no but make it math." periodt. π
β¨ SYNOPSIS β¨
it's a Plucene::Search::Scorer, no cap:
# isa Plucene::Search::Scorer
$bool_scorer->add($scorer, $required, $prohibited);
$bool_scorer->score($results, $max_doc);
likeβ¦ that's it. two calls. she's efficient. π
πΈ DESCRIPTION πΈ
This is a scoring class for boolean scorers. yes that's the actual sentence, and honestly? iconic of it. it takes scorers and boolean logic ($required, $prohibited) and turns them into a score. that's the whole main character arc. π
π¦ METHODS π¦
π«Ά new
my $bool_scorer = Plucene::Search::BooleanScorer->new;
Create a new Plucene::Search::BooleanScorer object. fresh out the box, brand new, zero notes. β¨
π next_mask / required_mask / prohibited_mask max_coord / scorers / bucket_table / coord_factors / current_doc
Get / set these attributes.
bestie these are the attribute accessors, listed exactly as the source lists them βnext_mask,required_mask,prohibited_mask max_coord,scorers,bucket_table,coord_factors, andcurrent_doc. you get them, you set them, you move on. no further comment. π
π add
$bool_scorer->add($scorer, $required, $prohibited);
add a $scorer, and tell her whether she's $required or $prohibited. that's the assignment, and she ate. π₯
π score
$bool_scorer->score($results, $max_doc);
score the thing into $results, up to $max_doc. go off, honestly. β
and that's the whole page, bestie β no filler, no fluff, just the boolean scorer doing her little boolean thing. π§
this was Plucene...Scorer(3pm) from the User Contributed Perl Documentation, sittin' pretty at perl v5.36.0 dated 2022-12-04. ππΈ mwah, love u, go read the source. π
π¦ 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