Expand my Community achievements bar.

SOLVED

How to add multiple paths in datarange querybuilder query?

Avatar

Level 8

type=sling:Folder
daterange.property=jcr:lastModified
daterange.lowerBound=2022-09-01T01:00:00.000
daterange.upperBound=2022-09-24T18:00:00.000
path=/content/dam
1_group.p.or=true
p.limit=-1

 

I want to add multiple paths when I am adding that getting 

not getting proper result?

how to add multiple paths in querybuilder api query.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor
3 Replies

Avatar

Community Advisor

Hi @akshaybhujbale ,

You would need to use group for this.

This predicate is used to create logical conditions in your query. You can create complex conditions using OR & AND operators in different groups.

type=sling:Folder
daterange.property=jcr:lastModified
daterange.lowerBound=2022-09-01T01:00:00.000
daterange.upperBound=2022-09-24T18:00:00.000
group.1_path=/content/dam
group.2_path=someotherpath
group.p.or=true
p.limit=-1

 

Avatar

Correct answer by
Employee Advisor

@akshaybhujbale - It would be as simple as :

group.1_group.path.self=true
group.2_group.path.self=true

also, cheatsheet references you can refer to :
[1]https://experienceleague.adobe.com/docs/experience-manager-65/assets/JCR_query_cheatsheet-v1.1.pdf?l...

[2] https://github.com/paulrohrbeck/aem-links/blob/master/querybuilder_cheatsheet.md