---
name: "Plucene::Search::TopDocs"
section: "3pm"
platform: "linux"
package: "libplucene-perl"
version: "1.25-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Plucene::Search::TopDocs"
---

# Plucene::Search::TopDocs(3pm)

The top hits for a query

## NAME

Plucene::Search::TopDocs - The top hits for a query

## SYNOPSIS

```
        my $total_hits = $top_docs->total_hits;
        my @score_docs = $top_docs->score_docs(@other);
```

## DESCRIPTION

## METHODS

### total\_hits

```
        my $total_hits = $top_docs->total_hits;
```

The total number of hits for the query.

### score\_docs

```
        my @score_docs = $top_docs->score_docs(@other);
```

The top hits for the query.
