Plucen...archer(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::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