---
name: "Catmandu::Store::Solr::CQL"
section: "3pm"
platform: "linux"
package: "libcatmandu-solr-perl"
version: "0.0304-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catmandu::Store::Solr::CQL"
---

# Catmandu::Store::Solr::CQL(3pm)

Converts a CQL query string to a Solr query string

## NAME

Catmandu::Store::Solr::CQL - Converts a CQL query string to a Solr query string

## SYNOPSIS

```
    $solr_query_string = Catmandu::Store::Solr::CQL->parse($cql_query_string);
```

## DESCRIPTION

This package currently parses most of CQL 1.1:

```
    and
    or
    not
    prox
    prox/distance<$n
    srw.allRecords
    srw.serverChoice
    srw.anywhere
    cql.allRecords
    cql.serverChoice
    cql.anywhere
    =
    scr
    =/fuzzy
    scr/fuzzy
    <
    >
    <=
    >=
    <>
    exact
    all
    any
    within
```

## METHODS

### parse

Parses the given CQL query string with CQL::Parser and converts it to a Solr query string.

### visit

Converts the given CQL::Node to a Solr query string.

## TODO

support cql 1.2, more modifiers (esp. masked), sortBy, encloses

## SEE ALSO

CQL::Parser.
