Search::Query::Dialect::KSx::NOTWildcardQuery - KinoSearch query extension
my $query = Search::Query->parser( dialect => 'KSx' )->parse('myfield!:foo*'); my $ks_query = $query->as_ks_query(); # $ks_query isa NOTWildcardQuery
If a WildcardQuery is equivalent to this:
$term =~ m/$query/
then a NOTWildcardQuery is equivalent to this:
$term !~ m/$query/
Note that the as_ks_query() method in Dialect::KSx does not use this class but instead wraps a WildcardQuery in a NOTQuery, which allows for matching null values as well. So currently this class is not used by Search::Query::Dialect::KSx but is included here in case someone finds it useful.
This class isa Search::Query::Dialect::KSx::WildcardQuery subclass. Only new or overridden methods are documented.
Returns a Search::Query::Dialect::KSx::Compiler object.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-search-query-dialect-ksx at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Search-Query-Dialect-KSx. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-search-query-dialect-ksx at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Search::Query::Dialect::KSx
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Search-Query-Dialect-KSx
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Search-Query-Dialect-KSx
CPAN Ratings
http://cpanratings.perl.org/d/Search-Query-Dialect-KSx
Search CPAN
http://search.cpan.org/dist/Search-Query-Dialect-KSx/
Based on the sample PrefixQuery code in the KinoSearch distribution.
Copyright 2010 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.
To install Search::Query::Dialect::KSx, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Search::Query::Dialect::KSx
CPAN shell
perl -MCPAN -e shell install Search::Query::Dialect::KSx
For more information on module installation, please visit the detailed CPAN module installation guide.