logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

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

License, Disclaimer, Bugs, Etc.

       See KinoSearch1 version 1.01.

perl v5.40.0                                       2024-10-20                      KinoSearch1::Search::Hit(3pm)

Methods

get_doc
           my $doc = $hit->get_doc;

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

   get_score
           my $score = $hit->get_score;

       Return the Hit's score.

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

   get_field_values
           my $hashref = $hit->get_field_values;

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

Name

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

See Also