NAME
LucyX::Search::AnyTermQuery - Lucy query extension for not NULL values
SYNOPSIS
my $query = LucyX::Search::AnyTermQuery->new(
field => 'color',
);
my $hits = $searcher->hits( query => $query );
# $hits == documents where the 'color' field is not empty
DESCRIPTION
LucyX::Search::AnyTermQuery extends the Lucy::QueryParser syntax to support NULL values.
METHODS
This class is a subclass of Lucy::Search::Query. Only new or overridden methods are documented here.
new( args )
Create a new AnyTermQuery object. args must contain key/value pair for field
.
get_field
Retrieve the value set in new().
equals
Returns true (1) if the object represents the same kind of query clause as another AnyTermQuery.
NOTE: Currently a AnyTermQuery and a NullTermQuery object will evaluate as equal if they have the same field. This is a bug.
to_string
Returns the query clause the object represents.
make_compiler
Returns a LucyX::Search::NullCompiler object.
AUTHOR
Peter Karman, <karman at cpan.org>
BUGS
Please report any bugs or feature requests to bug-lucyx-search-wildcardquery at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LucyX-Search-NullTermQuery. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc LucyX::Search::NullTermQuery
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=LucyX-Search-NullTermQuery
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2013 Peter Karman.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.