Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Query Builder Search | Multiple Paths | Single Property & Multiple Values

krish747
Level 2
Level 2

Could anyone please tell me how can I search for the following using Query Builder?

1. Multiple Paths (With OR Condition)

2. Single Property

3. Multiple Values (for the above mentioned Property) (With OR Condition)

For instance,

Path = /content/abc/a, /content/abc/xyz/x

property = sling:resourceType

value.1=/training/content/title

value.2=//training/content/header

3 Replies
Gaurav-Behl
Community Advisor
Community Advisor

try this --

type=cq:Page

p.limit=-1

group.p.or=true

group.1_path=/content/we-retail/us/en/products/men

group.2_path=/content/wknd/

property=jcr:content/sling:resourceType

property.1_value=wknd/components/structure/page

property.2_value=weretail/components/structure/page

OR

(

  /jcr:root/content/we-retail/us/en/products/men//element(*, cq:Page)

  [

  ((jcr:content/@sling:resourceType = 'weretail/components/structure/page' or jcr:content/@sling:resourceType = 'wknd/components/structure/page'))

  ]

|

  /jcr:root/content/wknd//element(*, cq:Page)

  [

  ((jcr:content/@sling:resourceType = 'weretail/components/structure/page' or jcr:content/@sling:resourceType = 'wknd/components/structure/page'))

  ]

)