Hi Jack, 付 尧 schrieb: > Hi guys, > > I have a question to ask, I want do some query in sling. > > To my surprise, Jcr didn't support paging in query. Fortunately > Jackrabbit support in QueryImpl and QueryResultImpl.
Unless Jackrabbit would define an API for these methods, which may be supported not only for the embbeded use case but also for a remote use-case, changes are close to zero, that the JsonQueryServlet will ever use QueryImpl and QueryResultImpl. In addition, these two classes are not even exported from the jcr/jackrabbit-server bundle and therefore not visible outside of that bundle. > But when I turn to JsonQueryServlet. I found it didn't use it at all. > > Does that seems right? Yes, since as I said, there is no API only internal classes. But I think the solution explained by Bertrand should be equally good. Regards Felix
