如何使用查询生成器在给定路径和仅在AEM 6中激活的页面下执行全文搜索?

如何使用查询生成器在给定路径和仅在AEM 6中激活的页面下执行全文搜索?,aem,query-builder,Aem,Query Builder,我想在特定路径下和仅激活或发布的页面下执行全文搜索 因此,如果我们在/content/skynet/contact-us/jcr:content/content/slider/items下找到文本,并且contact-us.html页面未激活,则应忽略此点击 path=/content/skynet type=cq:Page group.p.or=true group.1_fulltext=icon-phone group.1_fulltext.relPath=jcr:content prop

我想在特定路径下和仅激活或发布的页面下执行全文搜索

因此,如果我们在
/content/skynet/contact-us/jcr:content/content/slider/items
下找到文本,并且contact-us.html页面未激活,则应忽略此点击

path=/content/skynet
type=cq:Page
group.p.or=true
group.1_fulltext=icon-phone
group.1_fulltext.relPath=jcr:content

property=cq:lastReplicationAction
property.value=Activate

p.limit=1
p.offset=0

您的属性
cq:lastplicationaction
将位于
cq:PageContent
节点上,而不是
cq:Page
上。因此,提供属性的相对路径应该可以解决您的问题

path=/content/skynet
type=cq:Page
fulltext=icon-phone
fulltext.relPath=jcr:content
property=jcr:content/cq:lastReplicationAction
property.value=Activate
p.limit=-1 //To display all the results
使用该属性(cq:lastReplicationAction)将仅对作者有效,默认情况下该属性不会复制到发布。