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 ๐
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
- ubuntu stonking: libkinosearch1-perl 1.01-6build2 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms