-
-
16 May 2018 02:24:24 UTC
- Distribution: Dezi
- Module version: 0.004003
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues
- Testers (487 / 1 / 5)
- Kwalitee
Bus factor: 0- % Coverage
- License: perl_5
- Perl: v5.8.3
- Activity
24 month- Tools
- Download (32.51KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors- Peter Karman, C<< <karman at cpan.org> >>
- Dependencies
- Class::Load
- Dezi::App
- Lucy
- Moose
- Plack
- Plack::Middleware::Auth::Basic
- Plack::Middleware::ReverseProxy
- SWISH::3
- Search::OpenSearch
- Search::OpenSearch::Engine::Lucy
- Search::OpenSearch::Server
- Search::Query
- Search::Query::Dialect::Lucy
- Search::Tools
- Test::More
- Type::Tiny
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
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. Only new methods are overridden.
app( config )
Class method that uses Plack::Builder to construct the server application. config should be a hashref that is converted internally to a Dezi::Config object.
Read the Dezi::Config documentation for full reference of all options available in config.
Returns the Plack $app via the Plack::Builder builder() function.
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-2018 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
Module Install Instructions
To install Dezi, copy and paste the appropriate command in to your terminal.
cpanm Dezi
perl -MCPAN -e shell install Dezi
For more information on module installation, please visit the detailed CPAN module installation guide.