How to add multiple paths in datarange querybuilder query? | Community
Skip to main content
New Participant
September 7, 2022
Solved

How to add multiple paths in datarange querybuilder query?

  • September 7, 2022
  • 1 reply
  • 993 views

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.
Best answer by milind_bachani

@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

1 reply

Anmol_Bhardwaj
New Participant
September 7, 2022

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

 

New Participant
September 7, 2022

Thanks @anmol_bhardwaj 

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

milind_bachani
milind_bachaniAccepted solution
Employee
September 7, 2022

@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