MacLochlainns Weblog

Michael McLaughlin's Technical Blog

Site Admin

Configure MarkLogic CQ

with 6 comments

CQ is MarkLogic’s client-side tool for interacting with the XML database. It is a web-based tool, which makes the deployment easy. This assumes that you’ve already installed and configured the MarkLogic Server. If not, you can read Install MarkLogic and Configure MarkLogic before you do these steps.

  1. After completing the configuration, you should download the CQ tool from the MarkLogic download server.
  2. Open a Windows Explorer session and navigate to where you’ve installed MarkLogic, which will be installed in the Program Files directory for a 32-bit Windows and Program Files (x86) directory for a 64-bit Windows (for a 32-bit version of MarkLogic). The 64-bit version of MarkLogic won’t install on a 32-bit Windows but will install in the Program Files folder of a 64-bit Windows installation. Click on the Docs subfolder to expose its subfolders, like the following.

  1. Drag the CQ components into the MarkLogic\Docs\cq folder.
  2. Provided you’ve started the MarkLogic Service on Windows, you can access CQ by using the http://localhost:8000/cq URL. This is shown with the default program unit in the following screen shot. You can run it by clicking the XML button.

You might try some of your own XQuery code, like this:

1
2
3
let $message := "Hey world, hello!"
return (xdmp:set-response-content-type("text/html"),
        <body>Live from New York City, [{$message}]</body>)

Written by maclochlainn

December 2nd, 2010 at 12:36 am

Posted in Uncategorized

6 Responses to 'Configure MarkLogic CQ'

Subscribe to comments with RSS or TrackBack to 'Configure MarkLogic CQ'.

  1. […] CQ client software […]

  2. Can you explain how CQ can be installed for RHEL?

    Boo

    9 Feb 11 at 10:32 am

  3. I had all those folders EXCEPT for cq…
    After *MUCH* searching, I found a download page on CQ here.

    Chris Staber

    9 Mar 11 at 12:39 am

  4. I noticed that we need to Oopen a window for step 2.
    How is this done?

    Bill Evans

    1 Jul 11 at 1:33 pm

  5. What’s that, ouch a typo or a question? If a question, you click on Start -> My Computer, click on the Local Disk (C:) icon, then the Folder button in the toolbar. :-) By the way, I removed the extraneous "o".

    maclochlainn

    1 Jul 11 at 6:37 pm

  6. Just a note for those that might follow in my footsteps. If you have downloaded MarkLogic 5 you don’t need to download CQ. It is already built into MarkLogic 5.

    Jason Hudson

    9 Nov 11 at 1:37 pm

Leave a Reply