How to add multiple paths in datarange querybuilder query? | Community
Skip to main content
Level 6
Sep 7, 2022 12:19 PM UTC
Solved

How to add multiple paths in datarange querybuilder query?

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
milind_bachani
milind_bachaniAccepted solution
Employee
Sep 7, 2022 1:39 PM UTC

@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?lang=en

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

3 replies

Anmol_Bhardwaj
New Participant
Sep 7, 2022 12:55 PM UTC

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

 

Translate
Level 6
Sep 7, 2022 12:57 PM UTC

Thanks @anmol_bhardwaj 

Also how we can add path.self=true in above query

Translate
milind_bachani
milind_bachaniAccepted solution
Employee
Sep 7, 2022 1:39 PM UTC

@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?lang=en

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

Translate