AEM Querybuilder – Sample Queries

0
2362

This articles details some examples to query nodes and content on AEM (Adobe Experience Manager) nodes using querybuilder.

Return only folders at a given path

type=nt:base
path=/content/dam/we-retail/en
property=jcr:primaryType
property.1_value=sling:OrderedFolder
property.2_value=sling:Folder
path.flat=true
p.hits=selective
p.properties=jcr:path

URL : http://localhost:4502/bin/querybuilder.json?p.hits=selective&p.properties=jcr%3apath&path=%2fcontent%2fdam%2fwe-retail%2fen&path.flat=true&property=jcr%3aprimaryType&property.1_value=sling%3aOrderedFolder&property.2_value=sling%3aFolder&type=nt%3abase

 

Return all metadata of assets

path=/content/dam/test
type=dam:Asset
p.hits=full
p.limit=10
p.nodedepth=2
p.guesstotal=true

URL: https://localhost:4502/bin/querybuilder.json?p.guesstotal=true%20&p.hits=full&p.limit=10&p.nodedepth=2&path=%2fcontent%2fdam%2ftest&type=dam%3aAsset

LEAVE A REPLY

Please enter your comment!
Please enter your name here