LucyX:...atcher(3pm)
π NAME π
okay bestie, meet LucyX::Search::MockMatcher β it's a Matcher with arbitrary docs and scores. that's the whole vibe. π
β¨ DESCRIPTION β¨
so here's the tea, fr fr: MockMatcher exists so you can test combining Matchers β think stuff like ANDMatcher β and it does that by letting you supply arbitrary match criteria. which means you can skip all that "clever index construction" nonsense just to cover your corner cases. no cap, it's giving shortcuts in the best way. π
β οΈ heads up though: MockMatcher is a testing and demonstration class β it is unsupported. it's a queen, but she's not on payroll. π
π¦ CONSTRUCTORS π¦
πΈ new( [labeled params] )
here's what you can pass in, bestie:
doc_idsβ a sorted array of doc_ids. sorted, okay?? don't come at me with a messy array. πscoresβ an array of scores, one for each doc_id. so like, one score per doc_id, matching up perfectly. the way that they correspond... iconic. β¨
and that's the whole page, angel π«Ά this lil doc was served up with perl v5.42.0, dated 2025-07-25, and it lives under the name LucyX:...atcher (that's the truncated header/footer form of LucyX::Search::MockMatcher, iykyk). mwah π π β
π¦ where this page comes from
- fedora 43: perl-Lucy 0.6.2-26.fc43 Β· Apache-2.0 AND MIT AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms