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


KinoSearch documentation  | view source Contained in the KinoSearch distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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







DESCRIPTION

Top

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

Top

set_score(score)

Set score attribute.

get_score()

Get score attribute.

INHERITANCE

Top

KinoSearch::Document::HitDoc isa KinoSearch::Document::Doc isa KinoSearch::Object::Obj.

COPYRIGHT AND LICENSE

Top


KinoSearch documentation  | view source Contained in the KinoSearch distribution.