Plucen...Writer(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::Index::DocumentWriter πŸ’–

okay bestie, welcome to the Plucene::Index::DocumentWriter page (that's the 3pm manual section, iykyk) β€” the document writer, fr fr. it's giving Perl, it's giving User Contributed, it's giving lowercase elegance. let's get into it πŸŽ€


✨ NAME ✨

Plucene::Index::DocumentWriter β€” literally just, the document writer. no notes. periodt. πŸ’…


🌸 SYNOPSIS 🌸

here's the vibe check, copy it exactly bestie:

my $writer = Plucene::Index::DocumentWriter
        ->new($directory, $analyser, $max_field_length);

$writer->add_document($segment, $doc);

look at that. three args going in, one document coming out. main character energy πŸ¦‹


πŸ‘‘ DESCRIPTION πŸ‘‘

so this class is the document writer. that's it, that's the whole description. no cap. it writes documents, it's a class, it slayed. πŸ’œ

🧚 METHODS 🧚

✨ new

my $writer = Plucene::Index::DocumentWriter
        ->new($directory, $analyser, $max_field_length);

this makes you a shiny brand new Plucene::Index::DocumentWriter object, using the arguments you handed it β€” $directory, $analyser, and $max_field_length, all passed right in. obsessed. 🫢

πŸ¦‹ add_document

$writer->add_document($segment, $doc);

yeah. that's the call. $segment and $doc go in, and the writer does its thing. iconic behaviour honestly πŸ’…


not me realising this whole page is like four lines of actual content and i've made it a whole event 😭 anyway it's a classic, we love her, no further questions

πŸŒΈπŸ’– that's the page babes β€” brought to you by perl v5.36.0, dated 2022-12-04. stay slaying, go write some documents βœ¨πŸŽ€

πŸ“¦ where this page comes from