Dezi::Result - abstract result class
my $results = $searcher->search( 'foo bar' ); while (my $result = $results->next) { printf("%4d %s\n", $result->score, $result->uri); }
Dezi::Result is a abstract class. It defines the APIs that all Dezi engines adhere to in returning results from a Dezi::InvIndex.
The following methods are all accessors (getters) only.
Returns an object for the backend engine.
Returns the ranking score for the Result.
URL or filepath to document.
Last modified date of document.
Document title.
Description of document.
Alias for uri().
Alias for mtime().
Alias for title().
Alias for summary().
Alias for score().
Returns the stored value for property for this Result.
The default behavior is to simply call a method called property on the internal doc() object. Subclasses should implement per-engine behavior.
Returns the stored value for property for the Result. Unlike get_property(), the value is always an arrayref, split on the libswish3 multi-value character.
Example:
my $val = $result->get_property('foo'); # "green\003blue" my $arrval = $result->get_property_array('foo'); # ['green', 'blue']
Note that return value will *always* be an arrayref, even if the original value does not contain a multi-value character.
Set by the parent Results, a hashref of property aliases to real names. Used by get_property().
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::Result
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.