Search DAM assets and Cq pages using lastModified date | QueryBuilder

白昼怎懂夜的黑 提交于 2019-12-06 07:04:15

问题


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

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


回答1:


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

So instead of using:

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

you can use:

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

and it will start working.



来源:https://stackoverflow.com/questions/26655619/search-dam-assets-and-cq-pages-using-lastmodified-date-querybuilder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!