Hello,
I did try the query, I don't get any result:
select d.* from cmis:document as d
where IN_TREE (d, '8af4943a-44c5-43f4-8049-b193392ca0c4')
ORDER BY d.cmis:lastModificationDate desc
but when I change IN_TREE with IN_FOLDER, it works fine:
select d.* from cmis:document as d
where IN_FOLDER (d, '8af4943a-44c5-43f4-8049-b193392ca0c4')
ORDER BY d.cmis:lastModificationDate desc
As far as I could find IN_TREE and IN_FOLDER are supposed to work the same way, except IN_TREE also contains sub-directories.
Any help would be highly appreciated
André
---
I did test with CMIS Workbench and Alfresco5.2.
Are you running a setup with a working SOLR index server? The difference between both queries is that IN_FOLDER can be executed against the database, and thus would work even if SOLR is not available / working correctly. Any query with IN_TREE always has to be executed on the SOLR index server and will fail if that is not available or return no results if the documents in question have not been properly indexed (yet).
Thanks for this information. I will search in this direction in the next days. I will inform about any changes ...
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.