Oliver
Oliver

Reputation: 6270

How to perform full text search under a given path and under pages that are Activated only in AEM 6 using Query builder?

I want to perform a full text search but under a specific path and under pages that are Activated or Published only.

So if we find the text under /content/skynet/contact-us/jcr:content/content/slider/items and the page contact-us.html is not activated then this hit should be ignored

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

Upvotes: 0

Views: 1981

Answers (1)

rakhi4110
rakhi4110

Reputation: 9281

Your property cq:lastReplicationAction would be on the cq:PageContent node and not on cq:Page. So giving a relative path to the property should fix your issue.

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

Upvotes: 1

Related Questions