Plucen...sWriter(3pm)
β¨ NAME β¨
okay so bestie, welcome to Plucene::Index::TermInfosWriter β it's the Perl module (that's the 3pm thing, she lives in the User Contributed Perl Documentation section, iykyk) whose whole entire job is writing to the term infos file π
π SYNOPSIS π
my $writer = Plucene::Index::TermInfosWriter->new(
$dir_name, $segment, $field_infos);
$writer->add(Plucene::Index::Term $term,
Plucene::Index::TermInfo $term_info);
$writer->write_term(Plucene::Index::Term $term);
π¦ DESCRIPTION π¦
So basically this lets you write and add to a term infos file for one specific segment β like, a particular segment, not all of them, okay? β¨ And not only that, it also writes the term infos index. Two jobs, one icon, no cap π
πΈ METHODS πΈ
π new
my $writer = Plucene::Index::TermInfosWriter->new(
$dir_name, $segment, $field_infos);
This will create a new Plucene::Index::TermInfosWriter object. Fresh new writer, main character energy, periodt π
π§ break_ref
This will break a circular reference. literally just untangling the situationship between your refs, you're welcome π«Ά
β add
$writer->add(Plucene::Index::Term $term,
Plucene::Index::TermInfo $term_info);
This will add the term and term info to the term infos file. yes bestie, the term AND the term info, both of them, going in π
π write_term
$writer->write_term(Plucene::Index::Term $term);
This will write the term to the term infos file. that's it, that's the whole vibe, it writes the term β¨
and that's a wrap on the Plucen...sWriter(3pm) page, babe β this lil doc is from perl v5.36.0, dated 2022-12-04, and honestly? iconic. go forth and write those term infos πππ¦
π¦ 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