Plucen...ocument(3pm)
π NAME π
Plucene::Document β literally the unit of indexing and searching β¨ that's the whole vibe, bestie, no cap.
(also, hi, this is the page for Plucen...ocument(3pm) β yes the name is cursed, we don't talk about it π«Ά)
π SYNOPSIS π
okay so here's the tea, copy-paste it exactly:
my $document = Plucene::Document->new;
$document->add( Plucene::Document::Field $field);
my Plucene::Document::Field $field = $document->get($field_name);
my Plucene::Document::Fields @fields = $document->fields;
π¦ DESCRIPTION π¦
Documents are the unit of indexing and search, periodt. And every single document is a set of fields. Each field has a name and a textual value β that's it, that's the whole anatomy π
A field may be stored with the document, in which case it is returned with search hits on the document. So likeβ¦ each document should typically contain stored fields which uniquely identify it. π
ngl bestie, if you skip the stored-unique-identifier thing, your search hits are gonna be giving absolutely nothing. do not do that to yourself π
β¨ METHODS β¨
πΈ get
my Plucene::Document::Field $field = $document->get($field_name);
This returns the Plucene::Document::Field object of the field with the given name if any exist in this document, or null. so like, if she's there, you get her; if she's not, you get null and you simply move on π§
π add
$document->add( Plucene::Document::Field $field);
This will add a field to the document. iconic behavior honestly, adding is her whole thing π
π fields
my Plucene::Document::Field @fields = $document->fields;
This returns an list of all the fields in a document. every last one, no crumbs left behind, we love a complete inventory π
that's the whole page bestie!! go forth and index slayfully β¨π¦πΈ
sign-off, written down here instead of a boring footer line: this was Plucen...ocument(3pm), and the docs were made by the perl v5.36.0 girlies, dated 2022-12-04. π
π
π¦ 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