Plucen...::Term(3pm)
π Plucene::Index::Term β a word from text π
okay bestie, welcome to Plucen...::Term(3pm) π
(yes that's the whole name squished into the terminal header, the real one is Plucene::Index::Term, she's just long and the terminal is a hater). This one lives in the User Contributed Perl Documentation corner of your man pages, and she is tiny but mighty. Let's go πΈ
β¨ NAME β¨
Plucene::Index::Term β a word from text π«Ά
β¨ SYNOPSIS β¨
here's the whole vibe, no notes:
my $term = Plucene::Index::Term->new({
field => $field_name,
text => $text,
});
# with two Plucene::Index::Term objects you can do:
if ($term1->eq($term2)) { ... }
# etc
literally that's it, she's low maintenance π
β¨ DESCRIPTION β¨
so a Term is a word from text, and she is the unit of search β¨ like, when you search stuff, this is the lil guy doing the work. iconic behavior tbh.
she's made of exactly two elements:
- the text of the word, as a string π
- the name of the field that the text occured in, as a string π
and bestie, don't let the name fool you into thinking it's only actual human words β terms can represent way more than words from text fields. think dates, email addresses, urls, etc. she contains multitudes fr fr π¦
β¨ METHODS β¨
eq / ne / lt / gt / ge / le π
Exactly what you would think they are. π
no cap. that's the whole description. she said what she said, periodt. π
ngl the whole module is giving "small but essential" energy and I'm obsessed π₯Ί
that's the page bestie, go forth and search π this cutie came to you from perl v5.36.0, dated 2022-12-04, and the page you just read is Plucen...::Term(3pm) π mwah, bye! π
β¨
π¦ 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