SWISH::Prog::Lucy::Results - search results for Swish3 Lucy backend
my $results = $searcher->search($query); $results->find_relevant_fields(1); while ( my $result = $results->next ) { my $fields = $result->relevant_fields; for my $f (@$fields) { printf("%s matched %s\n", $result->uri, $f); } }
SWISH::Prog::Lucy::Results is an Apache Lucy based Results class for Swish3.
Only new and overridden methods are documented here. See the SWISH::Prog::Results documentation.
Set to true (1) to locate the fields the query matched for each result. Default is false (0).
NOTE that the Indexer must have had highlightable_fields set to true (1) in order for find_relevant_fields to work.
Returns the next SWISH::Prog::Lucy::Result object from the result set.
Get the internal Lucy::Search::Hits object.
Get the read-only hashref of PropertyNameAlias to PropertyName values.
Get the read-only unique id from the parent Searcher.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-swish-prog-lucy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SWISH-Prog-Lucy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-swish-prog-lucy at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc SWISH::Prog::Lucy
You can also look for information at:
Mailing list
http://lists.swish-e.org/listinfo/users
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=SWISH-Prog-Lucy
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/SWISH-Prog-Lucy
CPAN Ratings
http://cpanratings.perl.org/d/SWISH-Prog-Lucy
Search CPAN
http://search.cpan.org/dist/SWISH-Prog-Lucy/
Copyright 2009 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 SWISH::Prog::Lucy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SWISH::Prog::Lucy
CPAN shell
perl -MCPAN -e shell install SWISH::Prog::Lucy
For more information on module installation, please visit the detailed CPAN module installation guide.