首页 > 解决方案 > AEM 6.2:: 使用特定标签搜索 cq:Page 和 dam:Asset 并按 jcr:created 排序

问题描述

我正在尝试创建 PredicateGroup 来搜索相应路径下的所有 cq:Page 和 dam:Asset 。此外,这些节点使用特定标签进行标记,并按 jcr:created 排序。

这是我写的:

group.1_group.p.and=true
group.1_group.path=/content/some/path
group.1_group.type=cq:Page
group.1_group.1_property=@jcr:content/cq:tags
group.1_group.1_property.value=root:some/tag
group.p.or=true
group.2_group.p.and=true
group.2_group.path=/content/dam/some/path
group.2_group.type=dam:Asset
group.2_group.1_property=@jcr:content/metadata/cq:tags
group.2_group.1_property.value=root:some/tag

它不适用于查询调试器。我还使用 lastModified date 查看了这个 URL Search DAM assets and Cq pages | QueryBuilder,我不知道我做错了什么。现在,我还没有添加排序条件,因为我正在尝试一步一步地进行。

提前致谢

标签: aemquery-builder

解决方案


推荐阅读