# Plucene::Search::PrefixQuery - a query that matches terms beginning wit... - perldoc - [phpMan]

## NAME
    [Plucene::Search::TermQuery](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ASearch%3A%3ATermQuery/markdown) - a query that matches terms beginning with a string

## SYNOPSIS
            # isa [Plucene::Search::Query](https://www.chedong.com/phpMan.php/perldoc/Plucene%3A%3ASearch%3A%3AQuery/markdown)

            $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.

