Lucy::...hQuery(3pm)
π Lucy::Search::NoMatchQuery π
okay so bestie, welcome to the Lucy::...hQuery(3pm) page β yes that's the manual name, it's giving cryptic but we move π«Ά
πΈ NAME πΈ
Lucy::Search::NoMatchQuery β the Query which matches no documents. literally zero. nada. the void. π
π¦ DESCRIPTION π¦
So NoMatchQuery is a utility class β it represents a query that matches nothing at all. not a single doc. it's the anti-slay of queries and honestly? sometimes that's exactly the vibe you need.
Typical usage, iykyk: you'd return a NoMatchQuery when a QueryParser gets asked to parse an empty string. like, you gave it nothing, so it gives you nothing back. fair trade fr fr. β¨
π CONSTRUCTORS π
new π
my $no_match_query = Lucy::Search::NoMatchQuery->new;
Constructor. It takes no arguments β zero, none, it's low-maintenance, the easiest relationship you'll ever be in. π
π METHODS π
make_compiler π₯
my $compiler = $no_match_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. very main character of it. π
searcherβ A Searcher.boostβ A scoring multiplier.subordinateβ Indicates whether the Query is a subquery (as opposed to a top-level query). If false, the implementation must invokenormalize()on the newly minted Compiler object before returning it. no skipping this step bestie, it's not optional. π
π INHERITANCE π
Lucy::Search::NoMatchQuery isa Lucy::Search::Query isa Clownfish::Obj.
the whole family tree, periodt. π§
and that's the page!! this was written with perl v5.42.0 and dated 2025-07-25 β ty for coming to my ted talk, stay iconic, 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