1Lucy::Document::HitDoc(U3spemr)Contributed Perl DocumentLautciyo:n:Document::HitDoc(3pm)
2
3
4
6 Lucy::Document::HitDoc - A document read from an index.
7
9 while ( my $hit_doc = $hits->next ) {
10 print "$hit_doc->{title}\n";
11 print $hit_doc->get_score . "\n";
12 ...
13 }
14
16 HitDoc is the search-time relative of the index-time class Doc; it is
17 augmented by a numeric score attribute that Doc doesn’t have.
18
20 set_score
21 $hit_doc->set_score($score);
22
23 Set score attribute.
24
25 get_score
26 my $float = $hit_doc->get_score();
27
28 Get score attribute.
29
31 Lucy::Document::HitDoc isa Lucy::Document::Doc isa Clownfish::Obj.
32
33
34
35perl v5.38.0 2023-07-20 Lucy::Document::HitDoc(3pm)