使用lastModified日期搜索DAM资产和Cq页面| QueryBuilder [英] Search DAM assets and Cq pages using lastModified date | QueryBuilder

查看:113
本文介绍了使用lastModified日期搜索DAM资产和Cq页面| QueryBuilder的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在根据上次修改日期查询CQ页面和资产。
这是必须放入查询构建器调试器中的文本:

I am querying the cq pages and assets based on the last modified date. Here is the the text that has to be put in query builder debugger:

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资产都应用下限。
我哪里出问题了?

It doesn't work. Here I have to apply lowerbound on both cq:pages and dam assets. Where am I going wrong?

推荐答案

您的查询是完全正确的,但dam:asset不会具有 cq:lastModified 属性,但具有 jcr:lastModified

Your query is full right except the thing that dam:asset don't have cq:lastModified property but it has jcr:lastModified.

因此不要使用:

1_group.2_group.relativedaterange.property=jcr:content/cq:lastModified

您可以使用:

1_group.2_group.relativedaterange.property=jcr:content/jcr:lastModified   

将开始工作。

这篇关于使用lastModified日期搜索DAM资产和Cq页面| QueryBuilder的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆