Why does the recursion selector not work past a given point? | Community
Skip to main content
jkpanera
New Participant
August 15, 2019
Solved

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

  • August 15, 2019
  • 2 replies
  • 2530 views

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.
Best answer by arunpatidar

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)

2 replies

jkpanera
jkpaneraAuthor
New Participant
August 16, 2019

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

arunpatidar
arunpatidarAccepted solution
New Participant
August 16, 2019

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