コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Query Builder API

Avatar

Level 2


What are the step you need to follow if you want to debug Query Builder API?

1 受け入れられたソリューション

Avatar

正解者
Administrator

Adding more reference here:

Read this community user's blog: http://www.aemcq5tutorials.com/tutorials/adobe-aem-cq5-tutorials/aem-query-builder

//

AEM comes with a Query Debugger tool using which you can execute search queries on the JCR (Java Content Repository).  Use this tool for the dry run for your AEM queries optimize them and then implement it in the code. AEM Query Builder debugger URL:- http://localhost:4502/libs/cq/search/content/querydebug.html

Debugging AEM Query Logs:- Debugging AEM query is very critical when you are looking for its performance or any error in aem query. Follow below steps to enable AEM Query Debugger:- Navigate to http://localhost:4502/system/console/slinglog. Click on Add new logger (It might be useful to create a new log file for the query, you can use any existing log file also.) Enter Logfile Name(query.log). Set Log level to Debug or Trace. TRACE will also show filtering per node (useful when writing custom filtering) Avoid DEBUG or lower log level in the production environment. Add below 3 class files for debugging.

Reference post:- CQ-OPS - How to Use CQ's Query Debugger Tool

~kautuk



Kautuk Sahni

元の投稿で解決策を見る

2 返信

Avatar

Level 10

Query Builder docs suggests two ways Query Builder API

Testing and Debugging

https://docs.adobe.com/docs/en/aem/6-3/develop/search/querybuilder-api.html#Testing and Debugging

Debugging Queries with Logging

https://docs.adobe.com/docs/en/aem/6-3/develop/search/querybuilder-api.html#Debugging Queries with Logging

Go through them, it should be sufficient. If not, reply back here.

Thanks

Avatar

正解者
Administrator

Adding more reference here:

Read this community user's blog: http://www.aemcq5tutorials.com/tutorials/adobe-aem-cq5-tutorials/aem-query-builder

//

AEM comes with a Query Debugger tool using which you can execute search queries on the JCR (Java Content Repository).  Use this tool for the dry run for your AEM queries optimize them and then implement it in the code. AEM Query Builder debugger URL:- http://localhost:4502/libs/cq/search/content/querydebug.html

Debugging AEM Query Logs:- Debugging AEM query is very critical when you are looking for its performance or any error in aem query. Follow below steps to enable AEM Query Debugger:- Navigate to http://localhost:4502/system/console/slinglog. Click on Add new logger (It might be useful to create a new log file for the query, you can use any existing log file also.) Enter Logfile Name(query.log). Set Log level to Debug or Trace. TRACE will also show filtering per node (useful when writing custom filtering) Avoid DEBUG or lower log level in the production environment. Add below 3 class files for debugging.

Reference post:- CQ-OPS - How to Use CQ's Query Debugger Tool

~kautuk



Kautuk Sahni