Author image Marvin Humphrey
and 1 contributors

NAME

KinoSearch::Document::Doc - a document

SYNOPSIS

    my $doc = $invindexer->new_doc;
    $doc->set_value( 'title' => $title_text );
    $invindexer->add($doc);

DESCRIPTION

In KinoSearch, a Doc object is akin to a row in a database, in that it is made up of several fields, each of which has a value.

Doc objects are only created via factory methods of other classes.

METHODS

set_value get_value

    $doc->set_value( title => $title_text );
    my $text = $doc->get_value( 'title' );

set_value and get_value are used to modify and access the values of the fields within a Doc object.

to_hashref

    my $hashref = $doc->to_hashref;

Return the doc as a hashref, with the field names as hash keys and the field values as values.

COPYRIGHT

Copyright 2005-2006 Marvin Humphrey

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.05.