DOKK / manpages / debian 12 / libkinosearch1-perl / KinoSearch1::Search::Hit.3pm.en
KinoSearch1::Search::Hit(3pm) User Contributed Perl Documentation KinoSearch1::Search::Hit(3pm)

KinoSearch1::Search::Hit - successful match against a Query

A Hit object is a storage vessel which holds a Doc, a floating point score, and an integer document id.

    my $doc = $hit->get_doc;

Return the Hit's KinoSearch1::Document::Doc object.

    my $score = $hit->get_score;

Return the Hit's score.

    my $doc_number = $hit->get_id;

Return the Hit's document number. Note that this document number is not permanent, and will likely become invalid the next time the index is updated.

    my $hashref = $hit->get_field_values;

Return the values of the Hit's constituent fields as a hashref.

Copyright 2005-2010 Marvin Humphrey

See KinoSearch1 version 1.01.

2022-10-20 perl v5.36.0