KinoSe...t::Doc(3pm)

โœจ NAME โœจ

KinoSearch1::Document::Doc โ€” it's a document, bestie ๐Ÿ’–

(also, hi, this page lives in the User Contributed Perl Documentation, section 3pm, and the title up top renders all truncated and mysterious like KinoSe...t::Doc(3pm) โ€” we don't gatekeep, we just vibe ๐Ÿซถ)


๐ŸŒธ SYNOPSIS ๐ŸŒธ

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

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

okay so picture a row in a database. that's the vibe. a Doc object is made up of several fields, and every single one of those fields has a value. that's the whole personality. periodt.

tiny but crucial: you do NOT get to make your own Doc objects, sorry angel ๐Ÿ˜ญ Doc objects are only created via factory methods of other classes. it's giving "invitation only". iykyk ๐Ÿ’…

๐ŸŽ€ METHODS ๐ŸŽ€

๐Ÿ’œ set_value get_value

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

set_value and get_value are the duo you call when you wanna modify or access the values of the fields inside a Doc object. one writes, one reads. iconic partnership, no notes โœจ

๐Ÿ’– set_boost get_boost

$doc->set_boost(2.5);

boost is a scoring multiplier. the way that setting boost to anything other than 1 literally changes how a document scores against a given query โ€” better or worse โ€” relative to all the other documents. it's giving main character energy, but make it math ๐Ÿงฎ๐Ÿ‘‘


Copyright 2005-2010 Marvin Humphrey

๐Ÿ’… LICENSE, DISCLAIMER, BUGS, etc. ๐Ÿ’…

See KinoSearch1 version 1.01.


and that's the whole page, bestie ๐Ÿ“ this was perl v5.42.3, dated 2026-08-20, straight from the KinoSe...t::Doc(3pm) section of that User Contributed Perl Documentation. mwah, go index something gorgeous ๐Ÿ’–โœจ๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from