NAME
Lucy::Search::NoMatchQuery - Query which matches no documents.
DESCRIPTION
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.
CONSTRUCTORS
new
my $no_match_query = Lucy::Search::NoMatchQuery->new;
Constructor. Takes no arguments.
METHODS
make_compiler
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.
INHERITANCE
Lucy::Search::NoMatchQuery isa Lucy::Search::Query isa Clownfish::Obj.