This project has retired. For details please refer to its Attic page.
Lucy::Document::HitDoc – Apache Lucy Documentation
Apache Lucy™

NAME

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

SYNOPSIS

while ( my $hit_doc = $hits->next ) {
    print "$hit_doc->{title}\n";
    print $hit_doc->get_score . "\n";
    ...
}

DESCRIPTION

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.

METHODS

set_score

$hit_doc->set_score($score);

Set score attribute.

get_score

my $float = $hit_doc->get_score();

Get score attribute.

INHERITANCE

Lucy::Document::HitDoc isa Lucy::Document::Doc isa Clownfish::Obj.