Nicolas Steenlant > Catmandu-Store-ElasticSearch-0.0205 > Catmandu::Store::ElasticSearch::CQL

Download:
Catmandu-Store-ElasticSearch-0.0205.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Catmandu-Store-ElasticSearch-0.0206

NAME ^

Catmandu::Store::ElasticSearch::CQL - Converts a CQL query string to a Elasticsearch query hashref

SYNOPSIS ^

    $es_query = Catmandu::Store::ElasticSearch::CQL
        ->new(mapping => $cql_mapping)
        ->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 Elasticsearch query hashref.

parse_node

Converts the given CQL::Node to a Elasticsearch query hashref.

TODO ^

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

SEE ALSO ^

CQL::Parser.

syntax highlighting: