Dezi::Lucy - Dezi Apache Lucy backend
# create an index use Dezi::Lucy; my $app = Dezi::Lucy->new( invindex => 'path/to/dezi.index', aggregator => 'fs', indexer => 'lucy', config => 'path/to/dezi.conf', ); $app->run('path/to/files'); # then search the index my $searcher = Dezi::Lucy::Searcher->new( invindex => 'path/to/dezi.index', ); my $results = $searcher->search('my query') while ( my $result = $results->next ) { printf("%s : %s\n", $result->score, $result->uri); }
STOP: Read the Dezi and Dezi::App documentation before you use this module.
Dezi::Lucy is an Apache Lucy based implementation of Dezi::App using the SWISH::3 bindings for libswish3.
Dezi::Lucy is to Apache Lucy what Solr or ElasticSearch is to Lucene.
See the Dezi::App docs for more information about the class hierarchy and history.
See the Swish3 development site at http://swish3.dezi.org/.
You can use Lucy directly. Using Lucy via Dezi::Lucy offers a few advantages:
You get to use all of Dezi's Aggregators and SWISH::Filter support. So you can easily index all kinds of file formats (email, .txt, .html, .xml, .pdf, .doc, .xls, etc) without writing your own parser.
SWISH::3 offers fast and robust XML and HTML parsers with an extensible configuration system, build on top of libxml2.
You can index your content with Dezi::Lucy, then build a more complex searching application directly with Lucy.
Peter Karman, <karpet@dezi.org>
Please report any bugs or feature requests to bug-dezi-app at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dezi-App. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-dezi-app at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Dezi::App
You can also look for information at:
Website
http://dezi.org/
IRC
#dezisearch at freenode
Mailing list
https://groups.google.com/forum/#!forum/dezi-search
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Dezi-App
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Dezi-App
CPAN Ratings
http://cpanratings.perl.org/d/Dezi-App
Search CPAN
https://metacpan.org/dist/Dezi-App/
Copyright 2018 by Peter Karman
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://dezi.org/, http://swish-e.org/, http://lucy.apache.org/
To install Dezi::App, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dezi::App
CPAN shell
perl -MCPAN -e shell install Dezi::App
For more information on module installation, please visit the detailed CPAN module installation guide.