03-23-2018 04:38 AM
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.
03-23-2018 07:25 AM
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).
03-23-2018 10:16 AM
Thanks for this information. I will search in this direction in the next days. I will inform about any changes ...
Explore our Alfresco products with the links below. Use labels to filter content by product module.