Nick Wellnhofer > Lucy > Lucy::Search::NoMatchQuery

Download:
Lucy-0.5.1.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.005001   Source  

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.

INHERITANCE ^

Lucy::Search::NoMatchQuery isa Lucy::Search::Query isa Clownfish::Obj.

syntax highlighting: