Gravatar for thandava_alapati@dellteam.com

Question by Thandava Phani Kumar, Feb 10, 2018 3:37 AM

What is the major difference between aq and cq ?

What is the major difference between aq and cq ?

2 Replies
Gravatar for erocheleau@coveo.com

Answer by Etienne, Feb 10, 2018 5:07 AM

You can find the short definitions here:

https://developers.coveo.com/display/CloudPlatform/Glossary#Glossary-AdvancedQueryExpressionadvancedqueryexpression

https://developers.coveo.com/display/CloudPlatform/Glossary#Glossary-ConstantQueryExpression

Gravatar for fcote@coveo.com

Answer by fcote, Feb 12, 2018 1:54 PM

Hi Thandava,

To complement the answer above, here some additional information in the context of the Intermediate Analytics class.

Source: https://developers.coveo.com/display/public/SearchREST/Query+Parameters

In short, these are used by developers so their precise uses cases is outside the scope of this class.

However, here what you need to know as analyst

Both are generated by the Search Interface (Front-End) and contains additional instructions that the Coveo Platform will use to process the Query. A Filter is a good example.

The cq is designed to hold expressions (like Filters) that will be constant for all users.

What's important

By default, selecting a Tab will add a Filter expression to the cq.

The logic is that the Tab Filter will be the same across all users.

As analyst, you have to remember that if you want to analyse the usage on your Tabs.

The aq on the other hand is for all other expressions, those that will change based on the user and it's actions.

What's important

By default, selecting a Facet or a Sort will add a Filter expression to the aq

As analyst, you have to remember that the aq is what contains the vast majority of the Filters that are on your Search Interface.

Therefore, the aq will help you understand the Filters that was in place for each of the queries that were made on your Search Interface.

This is fundamental when analyzing content gaps.

Ask a question