Search::OpenSearch::Server - serve OpenSearch results
Search::OpenSearch::Server is a Moose::Role.
The following methods are available to consumers.
A Search::OpenSearch::Engine instance created by init_engine or passed to new().
Returns a Search::OpenSearch::Engine instance, passing in the contents of engine_config with the logger param set to $self.
Defaults to an empty hashref.
Returns empty hashref.
Expects an object of some kind.
Expects an array ref of HTTP method names.
Performs a search using a Search::OpenSearch::Engine set in engine().
A Request object. Should act like a Plack::Request or a Catalyst::Request.
A Response object. Should act like a Plack::Response or a Catalyst::Response.
Will return the response object.
Calls the appropriate REST method on the engine().
The following HTTP headers are supported for explicitly setting the indexer behavior:
If no 'q' param is present in the Plack::Request, this method is called. The default behavior is to set a 400 (bad request) with error message. You can override it to behave more kindly.
Utility method. Default is to warn(msg).
A no-op for backwards compatability for pre-Moose version of this class.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-search-opensearch-server at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Search-OpenSearch-Server. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-search-opensearch-server at rt.cpan.org
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
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::OpenSearch::Server, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.