Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Why does the recursion selector not work past a given point?

Avatar

Level 5

If I query http://localhost:4502/apps/pb/components.4.json, I get a useful JSON representation of the repository up to depth four:

{"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Mon Jun 25 2018 14:49:46 GMT+0000","content": {"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Mon Jun 25 2018 14:49:46 GMT+0000","coffee-subscription": {"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Wed Jul 31 2019 10:05:35 GMT-0500","unsubscribe": {"jcr:primaryType": "nt:folder","jcr:createdBy": "admin","jcr:created": "Wed Jul 31 2019 10:05:35 GMT-0500"}}

....

}

but http://localhost:4502/apps/pb/components.5.json​ just gives

["/apps/pb/components.4.json","/apps/pb/components.3.json","/apps/pb/components.2.json","/apps/pb/components.1.json","/apps/b/components.0.json"]

What's going on here?

Thanks!!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Could you please check JSON Max results property at below , this looks like some configuration issue, could you please try on vanilla instance

http://localhost:4504/system/console/configMgr/org.apache.sling.servlets.get.DefaultGetServlet

The maximum number of resources that should be returned when doing a node.5.json or node.infinity.json. In JSON terms this basically means the number of Objects to return. Default value is 200. (json.maximumresults)

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Could you please check JSON Max results property at below , this looks like some configuration issue, could you please try on vanilla instance

http://localhost:4504/system/console/configMgr/org.apache.sling.servlets.get.DefaultGetServlet

The maximum number of resources that should be returned when doing a node.5.json or node.infinity.json. In JSON terms this basically means the number of Objects to return. Default value is 200. (json.maximumresults)

Avatar

Level 5

Yep! That was the issue! The value had been 1000. I was able to move it up to 10000 and get my results.

(Of course I understand that this could have performance impacts. This is only on my local.)