XQuery Function Documentation

Search and Browse

http://exist-db.org/xquery/cqlparser

java:org.exist.xquery.modules.cqlparser.CQLParserModule

A module for a Contextual Query Language (CQL) parser

cqlparser:parse-cql

cqlparser:parse-cql($expression as xs:string?, $output-as as xs:string?) as item()?

Parses expressions in the Contextual Query Language (SRU/CQL) v1.2, returning it back as XCQL or CQL, based on the second parameter, default is XCQL. Basic searchClauses (index relation term) can be combined with boolean operators.

Parameters:
$expression? The expression to parse
$output-as? Output as 'XCQL' or 'CQL'
Returns:
item()? : the result