---
name: "KinoSearch::Search::Hit"
section: "3pm"
platform: "linux"
package: "libkinosearch-perl"
version: "0.165-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/KinoSearch::Search::Hit"
---

# KinoSearch::Search::Hit(3pm)

successful match against a Query

## NAME

KinoSearch::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.

## METHODS

### get\_doc

```
    my $doc = $hit->get_doc;
```

Return the Hit's KinoSearch::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.

## COPYRIGHT

Copyright 2005-2009 Marvin Humphrey

## LICENSE, DISCLAIMER, BUGS, etc.

See KinoSearch version 0.165.
