NAME

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

SYNOPSIS

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

DESCRIPTION

HitDoc is the search-time relative of the index-time class Doc. HitDocs have a numeric score attribute that Docs do not; however, they do not have a valid boost attribute, since boost is not preserved through the indexing process. (If you need it, add a field.)

METHODS

set_score(score)

Set score attribute.

get_score()

Get score attribute.

set_boost(boost)

Throw an error (boost is invalid).

get_boost()

Throw an error (boost is invalid).

INHERITANCE

KinoSearch::Doc::HitDoc isa KinoSearch::Doc isa KinoSearch::Obj.

COPYRIGHT

Copyright 2005-2008 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.20.

Copyright © 2004-2008 Marvin Humphrey