Hi,
When sending query over REST /alfresco/api/-default-/public/cmis/versions/1.1/atom/query?q=
And using IN_TREE() function for example like this: SELECT D.cmis
bjectId FROM cmis:document as D WHERE IN_TREE(D,'3c6897d5-44bb-4471-84b0-15b8d82adf89')&maxItems=1
Response XML contains <cmisra:numitems> -tag which has actual ammount of documents which can be found without maxItems parameter limitation. In my case it would be 3 cmis
bjectId's
But, when same query is send by using IN_FOLDER function like this: SELECT D.cmis
bjectId FROM cmis:document as D WHERE IN_FOLDER(D,'3c6897d5-44bb-4471-84b0-15b8d82adf89')&maxItems=1
Response XML contains <cmisra:numitems> -tag with the value of maxItems instead of actual count of items which can be found with the query, which is again 3 cmis
bjectId's in my case because all documents are in root of that single folder.
I consider this is as a bug because, it could be nice to know how many documents search returns if executed without maxItems limit. At this way we can first check if response is going to be huge and do some evasive actions before actually executing the query.