我正在根据上次修改日期查询 cq 页面和 Assets 。 这是必须放入查询构建器调试器中的文本:
fulltext=geometrix
1_group.p.or=true
1_group.1_group.p.and=true
1_group.1_group.path=/content
1_group.1_group.type=cq:Page
1_group.1_group.relativedaterange.property=jcr:content/cq:lastModified
1_group.1_group.relativedaterange.lowerBound=-1M
1_group.2_group.p.and=true
1_group.2_group.path=/content/dam
1_group.2_group.type=dam:Asset
1_group.2_group.relativedaterange.property=jcr:content/cq:lastModified
1_group.2_group.relativedaterange.lowerBound=-1M
这是行不通的。 在这里,我必须在 cq:pages 和 dam Assets 上应用下界。 我哪里错了?
最佳答案
除了 dam:asset 没有 cq:lastModified
属性但它有 jcr:lastModified
之外,您的查询完全正确。
所以不要使用:
1_group.2_group.relativedaterange.property=jcr:content/cq:lastModified
你可以使用:
1_group.2_group.relativedaterange.property=jcr:content/jcr:lastModified
它会开始工作。
关于aem - 使用 lastModified 日期搜索 DAM Assets 和 Cq 页面 |查询生成器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26655619/