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.
$hit_doc->set_score($score);
Set score attribute.
my $float = $hit_doc->get_score();
Get score attribute.
Lucy::Document::HitDoc isa Lucy::Document::Doc isa Clownfish::Obj.
Copyright © 2010-2015 The Apache Software Foundation, Licensed under the
Apache License, Version 2.0.
Apache Lucy, Lucy, Apache, the Apache feather logo, and the Apache Lucy project logo are trademarks of The
Apache Software Foundation. All other marks mentioned may be trademarks or registered trademarks of their
respective owners.