---
name: "Text::Query::Optimize"
section: "3pm"
platform: "linux"
package: "perl-text-query"
version: "0.09-5"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Text::Query::Optimize"
---

# Text::Query::Optimize(3pm)

Base class for query parsers

## NAME

Text::Query::Parse - Base class for query parsers

## SYNOPSIS

```
    package Text::Query::OptimizeSmart;
    use Text::Query::Optimize;

    use vars qw(@ISA);
    @ISA = qw(Text::Query::Optimize);
```

## DESCRIPTION

This module provides a virtual base class for query optimizers.

It defines the `"optimize"` method that is called by the `"Text::Query"` object to optimize the internal query.

## METHODS

- optimize (INTERNAL)

  Returns the `"INTERNAL"` argument after optimization. The default implementation returns the argument untouched.

## SEE ALSO

**Text::Query**(3)

## AUTHORS

Eric Bohlman (ebohlman@netcom.com)

Loic Dachary (loic@senga.org)
