logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Store::Solr::CQL - Converts a CQL query string to a Solr 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.

Name

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

See Also

       CQL::Parser.

perl v5.36.0                                       2023-02-05                    Catmandu::Store::Solr::CQL(3pm)

Synopsis

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

Todo

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

See Also