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 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