1Lucy::Document::HitDoc(U3s)er Contributed Perl DocumentatLiuocny::Document::HitDoc(3)
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 doesnXt 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.32.0 2020-07-28 Lucy::Document::HitDoc(3)