NAME

Dezi::Lucy::Results - search results for Dezi::Lucy::Searcher

SYNOPSIS

  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);
      }
  }

DESCRIPTION

Dezi::Lucy::Results is an Apache Lucy based Results class for Dezi::App.

METHODS

Only new and overridden methods are documented here. See the Dezi::Results documentation.

find_relevant_fields 1|0

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.

next

Returns the next Dezi::Lucy::Result object from the result set.

AUTHOR

Peter Karman, <karpet@dezi.org>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Dezi::App

You can also look for information at:

COPYRIGHT AND LICENSE

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.

SEE ALSO

http://dezi.org/, http://swish-e.org/, http://lucy.apache.org/