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

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

the score of a query

## NAME

Plucene::Search::Similarity - the score of a query

## DESCRIPTION

The score of a query for a given document.

## METHODS

### norm

```
        my $norm = $sim->norm($num_term);
```

### byte\_norm

```
        my $byte_norm = $sim->byte_norm($byte);
```

### tf

Computes a score factor based on a term or phrase's frequency in a document.

### idf

Computes a score factor for a phrase.

### coord

Computes a score factor based on the fraction of all query terms that  a document contains.
