KinoSearch::Doc - A document.
my $doc = KinoSearch::Doc->new(
fields => { foo => 'foo foo', bar => 'bar bar' },
);
$doc->{foo} = 'new value for field "foo"'
$doc->set_boost(2);
$invindexer->add($doc);
A Doc object is akin to a row in a database, in that it is made up of one or more fields, each of which has a value.
my $doc = KinoSearch::Doc->new(
fields => { foo => 'foo foo', bar => 'bar bar' },
boost => 0.5,
);
Set boost attribute. Setting boost to something other than 1.0 causes a document to score better or worse against a given query relative to other documents.
Get boost attribute.
Return the Doc's backing fields hash.
KinoSearch::Doc isa KinoSearch::Obj.
Copyright 2005-2008 Marvin Humphrey
See KinoSearch version 0.20.