I'm trying to rerun only the folders from a given path using query builder on AEM
Query:
path=/content/dam/we-retail/en
type=sling:OrderedFolder
p.hits=selective
p.nodedepth=1
p.limit=-1
The query returns 35 records, while there are only 6 folders under /content/dam/we-retail/en
. How can i return only these 6?
If you are looking at returning only the direct children under a path, use the property path.flat=true
.
path=/content/dam/we-retail/en
path.flat=true
type=sling:OrderedFolder
p.hits=selective
p.nodedepth=1
p.limit=-1
However, it is better to loop through the child nodes and identify the folders rather than querying in cases like this where you need only the direct children.
More about the Path Predicate Evaluator here.