How to add multiple paths in datarange querybuilder query? | Adobe Higher Education
Skip to main content
Level 6
September 7, 2022
Risolto

How to add multiple paths in datarange querybuilder query?

  • September 7, 2022
  • 1 risposta
  • 997 visualizzazioni

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.

Questo argomento è stato chiuso alle risposte.
Migliore risposta di 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 risposta

Anmol_Bhardwaj
Community Advisor
Community Advisor
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

 

Level 6
September 7, 2022

Thanks @anmol_bhardwaj 

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

milind_bachani
Adobe Employee
Adobe 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