Catmandu::Store::ElasticSearch::CQL - Converts a CQL query string to a Elasticsearch query hashref
$es_query = Catmandu::Store::ElasticSearch::CQL ->new(mapping => $cql_mapping) ->parse($cql_query_string);
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
Parses the given CQL query string with CQL::Parser and converts it to a Elasticsearch query hashref.
Converts the given CQL::Node to a Elasticsearch query hashref.
support cql 1.2, more modifiers (esp. all of masked), sortBy, encloses
CQL::Parser.
To install Catmandu::Store::ElasticSearch, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Store::ElasticSearch
CPAN shell
perl -MCPAN -e shell install Catmandu::Store::ElasticSearch
For more information on module installation, please visit the detailed CPAN module installation guide.