Lucy::...hQuery(3pm)

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

πŸ’– 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 invoke normalize() 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