Expand my Community achievements bar.

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

Avatar

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

Avatar

Level 10

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'))

  ]

)