Marvin Humphrey > KinoSearch-0.30_07 > KinoSearch::Doc::HitDoc

Download:
KinoSearch-0.30_07.tar.gz

Annotate this POD

CPAN RT

Open  7
View Bugs
Report a bug
Source  

NAME ^

KinoSearch::Doc::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 ^

A document read from an index.

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(score)

Set score attribute.

get_score()

Get score attribute.

INHERITANCE ^

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

COPYRIGHT AND LICENSE ^

Copyright 2005-2009 Marvin Humphrey

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.