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

Catmandu::Store::Solr::CQL3pm

Converts a cql query string to a solr query string

Usage

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

Overview

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

Releases

Unchanged in 2 releases since Debian 12 (Bookworm).

  1. 12–13

From libcatmandu-solr-perl 0.0304-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.