LucyX:...atcher(3pm)

πŸ“¦
version 0.6.2 Β· 2 versions
, in fedora 43

πŸ’– 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