KinoSe...h::Hit(3pm)
π NAME π
KinoSearch1::Search::Hit β the lil trophy object you get when a search actually hits π― (this is the 3pm perl docs situation, bestie, so you know it's real)
β¨ DESCRIPTION β¨
Okay so picture this: you run a Query, and it MATCHES something. That match doesn't come back as raw vibes β it comes back as a Hit object. π«Ά
A Hit object is basically a cute lil storage vessel π β a little tote bag that holds three things:
- a
Docπ - a floating point
scoreπ₯ - an integer document
idπͺͺ
That's it. That's the whole job. It holds the stuff. It's giving responsible. It's giving organized. π
π οΈ METHODS π οΈ
πΈ get_doc πΈ
my $doc = $hit->get_doc;
Returns the Hit's KinoSearch1::Document::Doc object. That's your actual document, the whole reason you're here. π
πΈ get_score πΈ
my $score = $hit->get_score;
Returns the Hit's score. How good was the match? This number knows. β¨
πΈ get_id πΈ
my $doc_number = $hit->get_id;
Returns the Hit's document number πͺͺ β but listen, bestie, this is the important part:
β οΈ This document number is NOT permanent. It will likely become invalid the next time the index is updated. So do not get attached, do not frame it, do not put it in your bio. Use it, love it, let it go. π
πΈ get_field_values πΈ
my $hashref = $hit->get_field_values;
Returns the values of the Hit's constituent fields as a hashref. All the field data, neatly bundled, one convenient lil hashref. Obsessed. π§Ίβ¨
π COPYRIGHT π
Copyright 2005-2010 Marvin Humphrey
π LICENSE, DISCLAIMER, BUGS, etc. π
See KinoSearch1 version 1.01. Go check that one out, it's got the whole rundown. π«‘
and that's the whole page, fr fr π this was perl v5.42.3-coded, dated 2026-08-20, and it ate. periodt. π π
π¦ 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