Tutorial part 2 Tutorial part 4

Carcass Advanced Tutorial - Part 3

Expert Query Editor

The most advanced query editor available in Carcass is the Expert Query Editor which allows you to use the full CQP syntax.

To open the Expert Query Editor click on the tab marked by the green arrow in the picture below:

The Expert Query Editor consists of a single text box where you can type your query directly using the CQP language. Type the following query and then click on Submit:

[word="obsessive"] [pos="NN.*"];

The query will take a few seconds to complete: it will appear in the query history as usual and the results will be displayed at the bottom of the screen.

Now you can browse the results or sort them just like you did with the results from the Simple and Smart query editors.

The CQP language used by the Expert Query Editor is rather complex and is beyond the scope of this tutorial, for more information refer to the official CQP tutorial.

Query History

You may have realised by now that the queries listed in the Query History are all expressed using the CQP language: if you use the Simple or the Smart query editors, Carcass automatically “translates” your queries into the CQP language.

We've seen how you can recall the results of previous queries by clicking on them, but there is another interesting thing you can do:

delete the content of the Expert Query Editor box, which should look like this

in the Query history, click on the first query you submitted

press CTRL-C (or COMMAND-C if you are using a Mac) on your keyboard, this will copy the query to the clipboard

click in the empty text box in the Expert Query Editor and then press CTRL-V (or COMMAND-V if you are using a Mac) on your keyboard

the CQP query will be pasted in the box

This is particularly useful if you want to start composing a query in the Smart Editor and then modify it manually.

Conclusion

This concludes the Carcass Advanced Tutorial, you can go back to the tutorials home page or to the Carcass documentation home page.

Tutorial part 2 Tutorial part 4