-
-
04 Sep 2014 00:12:31 UTC
- Distribution: Lucy
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Clone repository
- Issues
- Testers (2 / 91 / 0)
- Kwalitee
Bus factor: 1- License: apache_2_0
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (1.06MB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- The Apache Lucy Project <dev at lucy dot apache dot org>
- Dependencies
- Clownfish
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Lucy::Search::NOTQuery - Invert the result set of another Query.
SYNOPSIS
my $not_bar_query = Lucy::Search::NOTQuery->new( negated_query => $bar_query, ); my $foo_and_not_bar_query = Lucy::Search::ANDQuery->new( children => [ $foo_query, $not_bar_query ]. ); my $hits = $searcher->hits( query => $foo_and_not_bar_query ); ...
DESCRIPTION
A NOTQuery wraps another Query and matches against its inverse document set. All matching docs recieve a score of 0.0.
NOTQuery is often used in conjunction with ANDQuery to provide "a AND NOT b" semantics.
CONSTRUCTORS
new( [labeled params] )
my $not_query = Lucy::Search::NOTQuery->new( negated_query => $query, );
negated_query - The Query whose result set should be inverted.
METHODS
get_negated_query()
Accessor for the object's negated query.
set_negated_query(negated_query)
Setter for the object's negated query.
INHERITANCE
Lucy::Search::NOTQuery isa Lucy::Search::PolyQuery isa Lucy::Search::Query isa Clownfish::Obj.
Module Install Instructions
To install Lucy::Simple, copy and paste the appropriate command in to your terminal.
cpanm Lucy::Simple
perl -MCPAN -e shell install Lucy::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.