Plucen...xQuery(3pm)
π Plucene::Search::TermQuery β bestie edition π
okay so this is the manual page for Plucene::Search::TermQuery, and it lives in section 3pm of the User Contributed Perl Documentation. Yes, the header literally reads Plucen...xQuery(3pm) because apparently nobody could be bothered to spell it out β iconic behaviour honestly. π
β¨ NAME β¨
Plucene::Search::TermQuery β a query that matches terms beginning with a string π¦
πΈ SYNOPSIS πΈ
# isa Plucene::Search::Query
$prefix_query->normalize($norm);
my $ssw = $prefix_query->sum_squared_weights($searcher);
my $as_string = $prefix_query->to_string($field);
not the weird spacing in that third line, I'm keeping it exactly as it is, no cap π
π DESCRIPTION π
A query that matches a document containing terms beginning with the given string. That's it, that's the whole vibe. It's giving prefix-matching main character energy. π₯
π to_string π
$q->to_string
Convert the query to a readable string format. Literally just makes it look pretty so your eyeballs can parse it. β¨
π sum_squared_weights π
The sum sqaured weights of the query.
yes, "sqaured" β that's how it's spelled in the original, and I am NOT fixing it, that's the author's little typo and it's staying, periodt π
π¦ normalize π¦
Normalize the query.
And that's the whole page bestie, we ate and left no crumbs π
This one's from perl v5.36.0, dated 2022-12-04 β so go forth, match your prefix terms, and 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