KinoSearch1::Search::Hit(3pm)

KinoSearch1::Search::Hit3pm

Successful match against a query

Overview

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

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.

LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch1 version 1.01.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 7 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10
  6. 11
  7. 12
  8. 13

From libkinosearch1-perl 1.01-6+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.