Why does the recursion selector not work past a given point? | Community
Skip to main content
jkpanera
Level 4
Aug 15, 2019 9:38 PM UTC
Solved

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

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!!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 16, 2019 10:06 AM UTC

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)

Arun Patidar

2 replies

jkpanera
jkpaneraAuthor
Level 4
Aug 16, 2019 4:01 PM UTC

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.)

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 16, 2019 10:06 AM UTC

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)

Translate
Arun Patidar