CQL Basics

Make powerful searches with Çolpan Query Language (CQL).

What is CQL?

CQL (Çolpan Query Language) is a simple yet powerful query language that allows you to make complex searches in your UDF documents.

Basic Operators

CQL uses three basic operators:

OperatorMeaningExample
;ANDlegal;contract
!NOTlegal!dispute
|ORboston|chicago

Examples

AND Operator (;)

Documents containing both terms:

legal;contract

This query finds documents containing both “legal” and “contract”.

NOT Operator (!)

Documents containing one term but not the other:

legal!dispute

This query finds documents containing “legal” but not “dispute”.

OR Operator (|)

Documents containing either term:

boston|chicago

This query finds documents containing either “boston” or “chicago”.

Using Parentheses

You can use parentheses to group complex queries:

legal;(boston|chicago)!dispute

This query:

  • Contains “legal” AND
  • Contains “boston” or “chicago” AND
  • Does NOT contain “dispute”

Tips

Tip: Build your query step by step. Start with a simple term, then narrow down with operators.

Next Steps

You’ve learned CQL basics! Discover more with advanced queries.