Lucy::...llQuery(3pm)
π Lucy::Search::MatchAllQuery(3pm) π
okay so bestie, welcome to the Lucy::Search::MatchAllQuery page β it lives in the User Contributed Perl Documentation section and it is, no exaggeration, the chillest little utility class in the whole search stack. pull up a chair. π«Ά
β¨ NAME β¨
Lucy::Search::MatchAllQuery β a Query which matches all documents. every single one. the whole roster. π
πΈ DESCRIPTION πΈ
MatchAllQuery is a utility class, and its whole personality is: it matches all documents. that's it. that's the job. iconic behaviour honestly.
here's the tea though β every match it hands out gets a score of 0.0. so when you're building composite queries, any document that also matches against some other part of the query is gonna rank higher than a document that only matched because of the MatchAllQuery. it's giving "participation trophy" energy, and that is intentional. π
π CONSTRUCTORS π
π new
my $match_all_query = Lucy::Search::MatchAllQuery->new;
Constructor. takes no arguments β she simply arrives, fully formed, ready to match everything. no notes. π
π¦ METHODS π¦
π make_compiler
my $compiler = $match_all_query->make_compiler(
searcher => $searcher, # required
boost => $boost, # required
subordinate => $subordinate, # default: false
);
an abstract factory method that returns a Compiler derived from this Query. abstract, bestie β so the base class is like "you handle this", and the actual implementation has to show up and do the work. main character energy but make it inheritance. β¨
searcherβ a Searcher. yep, one of those. πboostβ a scoring multiplier. it multiplies the scoring. that's the vibe. π₯subordinateβ tells you whether the Query is a subquery (as opposed to a top-level query). and here's the important part, fr fr: if it's false, the implementation must invokenormalize()on the newly minted Compiler object before returning it. not optional. must. do not skip this step, i am begging. π
π INHERITANCE π
Lucy::Search::MatchAllQuery isa Lucy::Search::Query isa Clownfish::Obj.
the whole family tree, no cap. π³
lowkey reminder: this is an abstract factory situation, so the "must invoke normalize()" rule is a real requirement, not a suggestion. treat it like your 11pm deadline. π
and that's the whole page, bestie!! π documented under perl v5.42.0, dated 2025-07-25, and honestly? she ate. go match all your documents. slay. π β¨π¦πΈπ
π¦ 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