1KinoSearch1::Document::UDsoecr(3C)ontributed Perl DocumeKnitnaotSieoanrch1::Document::Doc(3)
2
3
4
6 KinoSearch1::Document::Doc - a document
7
9 my $doc = $invindexer->new_doc;
10 $doc->set_value( title => $title );
11 $doc->set_value( bodytext => $bodytext );
12 $invindexer->add($doc);
13
15 A Doc object is akin to a row in a database, in that it is made up of
16 several fields, each of which has a value.
17
18 Doc objects are only created via factory methods of other classes.
19
21 set_value get_value
22 $doc->set_value( title => $title_text );
23 my $text = $doc->get_value( 'title' );
24
25 "set_value" and "get_value" are used to modify and access the values of
26 the fields within a Doc object.
27
28 set_boost get_boost
29 $doc->set_boost(2.5);
30
31 "boost" is a scoring multiplier. Setting boost to something other than
32 1 causes a document to score better or worse against a given query
33 relative to other documents.
34
36 Copyright 2005-2010 Marvin Humphrey
37
39 See KinoSearch1 version 1.00.
40
41
42
43perl v5.12.2 2010-10-05 KinoSearch1::Document::Doc(3)