NAME
Dezi::Server - Dezi Plack server
SYNOPSIS
Start the Dezi server, listening on port 5000:
% dezi -p 5000
Add a document foo to the index:
% curl http://localhost:5000/index/foo -XPOST \
-d '<doc><title>bar</title>hello world</doc>' \
-H 'Content-Type: application/xml'
Search the index:
% curl 'http://localhost:5000/search?q=bar&t=JSON'
% curl 'http://localhost:5000/search?q=bar&t=XML'
DESCRIPTION
Dezi is a search platform based on Apache Lucy, Swish3, Search::OpenSearch and Search::Query.
Dezi integrates several CPAN search libraries into one easy-to-use interface.
Be sure to read the perldoc for Search::OpenSearch::Engine and Search::OpenSearch::Server::Plack.
METHODS
Dezi::Server is a subclass of Search::OpenSearch::Server::Plack. It isa Plack::Middleware. Only new methods are overridden.
new([ engine_config => $config_hashref ])
Returns an instance of the server.
app( opts )
The Plack::Builder construction, class method. Called within the Plack server. Override this method in a subclass to change the basic application definition.
parse_dezi_config( config )
Returns hashref of values culled from config including a server instance. Used internally by app().
AUTHOR
Peter Karman, <karman at cpan.org>
BUGS
Please report any bugs or feature requests to bug-dezi at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi. 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 Dezi::Server
You can also look for information at:
Website
IRC
#dezisearch at freenode
Mailing list
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2011 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.
SEE ALSO
Search::OpenSearch, SWISH::3, SWISH::Prog::Lucy, Plack, Lucy