MarkLogic CQ

down arrow Code & Downloads

CQ is a web-based XQuery tool, which allows developers to write ad hoc queries without managing .xqy files. Leveraging the web browser's built-in XML tree view, html view, and JavaScript engine, CQ is almost an IDE. You can view the results of your queries as XHTML, XML, or plain text. You can also profile the performance of your queries. You can work on multiple queries at once, browse your query history, change content sources, and save your queries to multiple, persistent sessions.

Note: Starting with MarkLogic 5, the Query Console application, which comes with MarkLogic, is a fully-supported tool that covers the same ground as this long-standing open source project. Query Console is not supported on older versions of MarkLogic Server. Stick with CQ if you are running earlier versions of MarkLogic.

CQ is designed for use with MarkLogic Server. It must be installed within the root of an HTTP Application Server. CQ is tested with FireFox 3 and Internet Explorer 7. Some features may not work on other browsers.

The simplest way to deploy it is to clone a copy from git:

git clone git:// cq

Then, create an application server and point its root at the path to cq. For example /home/jsmith/cq.

Older releases are available for earlier versions of MarkLogic Server below.

CQ screenshot



  • I don't understand why it asks for a password. I entered the same username and password I did when I created the new network location and it doesn't work. Why?
  • Changing sessions... clicking on the new session or resumes session seems to not work in firefox 4.
    • Thanks for the report. I've reported this up to the owners of CQ (Mike Blakeley and others). Mike's out for a bit, but I believe we'll see this addressed as some point. If you wish to contribute a fix yourself, please fork and make a pull request at