27 Feb 2018 08:40:23 UTC
- Distribution: Lucy
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Testers (1193 / 3 / 7)
- KwaliteeBus factor: 2
- License: apache_2_0
- Perl: v5.8.3
- Activity24 month
- Download (1.12MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:6 non-PAUSE usersNWELLNHOF Nick Wellnhoferand 1 contributors
- The Apache Lucy Project <dev at lucy dot apache dot org>
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.