21 Nov 2016 06:01:56 UTC
- Distribution: Search-Query
- Module version: 0.307
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (2190 / 4 / 17)
- KwaliteeBus factor: 0
- 84.35% Coverage
- License: perl_5
- Perl: v5.8.3
- Activity24 month
- Download (27.55KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- COPYRIGHT & LICENSE
Search::Query - polyglot query parsing
use Search::Query; my $parser = Search::Query->parser(); my $query = $parser->parse('+hello -world now'); print $query; # same as print $query->stringify;
This class provides documentation and class methods.
Search::Query started as a fork of the excellent Search::QueryParser module and was then rewritten to provide support for alternate query dialects.
Returns a Search::Query::Parser object. See the documentation for Search::Query::Parser for supported query syntax and how to customize the Parser.
Returns a Search::Query::Dialect-based class name corresponding to name. name defaults to 'Native'.
Alias for get_query_class().
<karman at cpan.org>
Please report any bugs or feature requests to
bug-search-query at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Search-Query. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
This module started as a fork of Search::QueryParser by Laurent Dami.
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.
Module Install Instructions
To install Search::Query, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Search::Query
For more information on module installation, please visit the detailed CPAN module installation guide.