Lucy::Document::HitDoc - A document read from an index.
while ( my $hit_doc = $hits->next ) { print "$hit_doc->{title}\n"; print $hit_doc->get_score . "\n"; ... }
HitDoc is the search-time relative of the index-time class Doc; it is augmented by a numeric score attribute that Doc doesn't have.
Set score attribute.
Get score attribute.
Lucy::Document::HitDoc isa Lucy::Document::Doc isa Lucy::Object::Obj.
To install Lucy::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lucy::Simple
CPAN shell
perl -MCPAN -e shell install Lucy::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.