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

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

a query that matches terms beginning with a string

## NAME

Plucene::Search::TermQuery - a query that matches terms beginning with a string

## SYNOPSIS

```
        # isa Plucene::Search::Query
        $prefix_query->normalize($norm);
        my       $ssw = $prefix_query->sum_squared_weights($searcher);
        my $as_string = $prefix_query->to_string($field);
```

## DESCRIPTION

A query that matches a document containing terms *beginning* with the given string.

### to\_string

```
        $q->to_string
```

Convert the query to a readable string format

### sum\_squared\_weights

The sum sqaured weights of the query.

### normalize

Normalize the query.
