Plucen...earcher(3pm)
π NAME π
Plucene::Search::Searcher β the base class for searchers, bestie π
πΈ DESCRIPTION πΈ
Okay so, this is an abstract base class for searchers. Like, it's the vibe, it's the blueprint, it's not doing the actual work itself β its subclasses are. Periodt.
Searching is, like, the whole operation of locating a subset of the documents that contains desired content, or whose attributes match some specification. That's it, that's the job π¦
The input for a search operation is a 'query' that specifies a criteria for selecting the documents, and its output is a list of documents ('hits') that matched that criteria.
The hit list is typically ordered by some measure of relevancy β called 'ranking' or 'scoring', iykyk β and it may contain only a subset of the set of documents that matched the query (typically the ones with the highest scored documents). Not all the hits make the cut, and honestly? Slay.
The search operation is performed on an 'index', which is a specialized database that contains a pre compiled information of the document set. The index database is optimized for locating quickly documents that contains certain words or terms. It's giving β¨ main character database β¨ fr fr.
π METHODS π
π doc_freq / max_doc / doc / _search_hc search_top
These must be defined in a subclas
π yeah bestie, that sentence just... ends. No cap, that's how it is in the source. Define them in a subclass and you're golden π«Ά
π search
my Plucene::Search::Hits $hits = $searcher->new($query, $filter);
This will return the Plucene::Search::Hits object for the passed in query and filter. At this stage, filter is optional β so don't stress about it, you can leave it out π
β search_hc
That's it. That's the whole entry. No description, no notes, just a name sitting there with mysterious icon energy π§
Written up against perl v5.36.0, dated 2022-12-04 β mwah, historic π thanks for coming to my TED talk, love u, bye πβ¨
π¦ 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