Module Version: 0.006002
Lucy::Search::NoMatchQuery - Query which matches no documents.
NoMatchQuery is a utility class representing a query which matches nothing.
Typical usage might include e.g.
returning a NoMatchQuery when a QueryParser is asked to parse an empty string.
my $no_match_query = Lucy::Search::NoMatchQuery->new;
Constructor. Takes no arguments.
my $compiler = $no_match_query->make_compiler(
searcher => $searcher, # required
boost => $boost, # required
subordinate => $subordinate, # default: false
Abstract factory method returning a Compiler derived from this Query.
- 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.
Lucy::Search::NoMatchQuery isa Lucy::Search::Query isa Clownfish::Obj.