【发布时间】:2019-09-13 15:41:59
【问题描述】:
【问题讨论】:
【问题讨论】:
CRXDE 无法做到这一点。即使查询有多个列,它也只显示最外层节点的路径。如果您的查询使用联接,这尤其具有限制性。
在您的情况下,我会推荐 查询生成器。它的语法完全不同,但 JSON 或 XML 结果包含您需要的所有数据。
我不知道其他工具。作为 AEM 开发人员,我通常会编写一个快速而肮脏的 servlet,并让它在我的本地实例上运行(带有生产内容)
http://localhost:4502/libs/cq/search/content/querydebug.html
path=/content/we-retail/language-masters/en/experience
property=sling:resourceType
property.value=weretail/components/content/image
p.hits=full
p.nodedepth=2
http://localhost:4502/bin/querybuilder.json?p.hits=full&p.nodedepth=2&path=%2fcontent%2fwe-retail%2flanguage-masters%2fen%2fexperience&property=sling%3aresourceType&property.value=weretail%2fcomponents%2fcontent%2fimage http://localhost:4502/bin/querybuilder.json?p.hits=full&p.nodedepth=2&path=%2fcontent%2fwe-retail%2flanguage-masters%2fen%2fexperience&property=sling%3aresourceType&property.value=weretail%2fcomponents%2fcontent%2fimage
在您的情况下,请特别参阅:Refining What Is Returned
您会在 Google 中找到更多信息,因为查询生成器在 AEM/CQ 中已经相当老了。
【讨论】: