Plucen...archer(3pm)
π Plucene::Search::IndexSearcher π
okay bestie, gather round π«Ά this is a page from the User Contributed Perl Documentation β it's the 3pm manual for Plucene::Search::IndexSearcher, which is giving very main character energy in the Plucene search lineup. iykyk. β¨
β¨ NAME β¨
Plucene::Search::IndexSearcher β literally the index searcher. that's her. that's the whole vibe. π
π SYNOPSIS π
here's the tea, copied exactly so you can steal it:
# isa Plucene::Search::Searcher
my $searcher = Plucene::Search::IndexSearcher
->new(Plucene::Index::Reader $reader);
my Plucene::Index::Reader $reader = $searcher->reader;
my Plucene::Document $doc = $reader->doc($id);
$searcher->close;
no cap, she inherits from Plucene::Search::Searcher, so everything in that family tree is hers too π
πΈ DESCRIPTION πΈ
Search over an IndexReader. that's it. that's the job. she searches. she slays. π
π METHODS π
π new
my $searcher = Plucene::Search::IndexSearcher
->new(Plucene::Index::Reader $reader);
this will create a new Searcher object with the passed Plucene::Index::Reader or any subclass thereof. so you can bring your own reader flavor, she's not picky, she's just β¨ particular β¨
π reader
my Plucene::Index::Reader $reader = $searcher->reader;
this will return the reader this searcher was made with. it's giving "who raised you" energy, but affectionate π₯Ή β she just tells you which reader she's been rolling with this whole time.
π search_top
The top search results. that's the whole description, bestie. she's mysterious like that. π¦
π doc
my Plucene::Document $doc = $reader->doc($id);
this will return the Plucene::Document $id. hand her an id, she hands you the doc. iconic exchange. πβ¨
π doc_freq / max_doc
get / set these β yep, they're accessors, that's the entire note. read 'em, write 'em, live your truth π
π close
this will close the reader(s) associated with the searcher. plural, bestie β reader(s) π β so say your goodbyes properly before you dip π«Ά
real talk: this page is short and that is not a me problem, that's a her problem. every single option, method and line above is the whole thing, fr fr. don't go inventing extra behaviour that isn't written down here. π
and that's the page, babe π this whole manual came to you from perl v5.36.0, dated 2022-12-04, and yes it really does say Plucen...archer(3pm) up in the header because the name got cut off β we still knew who she was though. periodt. πππ
π¦ 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