1Lucy::Search::NoMatchQuUesreyr(3C)ontributed Perl DocumeLnutcayt:i:oSnearch::NoMatchQuery(3)
2
3
4
6 Lucy::Search::NoMatchQuery - Query which matches no documents.
7
9 NoMatchQuery is a utility class representing a query which matches
10 nothing. Typical usage might include e.g. returning a NoMatchQuery
11 when a QueryParser is asked to parse an empty string.
12
14 new
15 my $no_match_query = Lucy::Search::NoMatchQuery->new;
16
17 Constructor. Takes no arguments.
18
20 make_compiler
21 my $compiler = $no_match_query->make_compiler(
22 searcher => $searcher, # required
23 boost => $boost, # required
24 subordinate => $subordinate, # default: false
25 );
26
27 Abstract factory method returning a Compiler derived from this Query.
28
29 • searcher - A Searcher.
30
31 • boost - A scoring multiplier.
32
33 • subordinate - Indicates whether the Query is a subquery (as opposed
34 to a top-level query). If false, the implementation must invoke
35 normalize() on the newly minted Compiler object before returning
36 it.
37
39 Lucy::Search::NoMatchQuery isa Lucy::Search::Query isa Clownfish::Obj.
40
41
42
43perl v5.34.0 2022-01-21 Lucy::Search::NoMatchQuery(3)