1Lucy::Document::HitDoc(U3s)er Contributed Perl DocumentatLiuocny::Document::HitDoc(3)
2
3
4

NAME

6       Lucy::Document::HitDoc - A document read from an index.
7

SYNOPSIS

9           while ( my $hit_doc = $hits->next ) {
10               print "$hit_doc->{title}\n";
11               print $hit_doc->get_score . "\n";
12               ...
13           }
14

DESCRIPTION

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

METHODS

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

INHERITANCE

31       Lucy::Document::HitDoc isa Lucy::Document::Doc isa Clownfish::Obj.
32
33
34
35perl v5.36.0                      2022-07-22         Lucy::Document::HitDoc(3)
Impressum