I have tried to extract the folders and documents information using below CMIS query in web script.
SELECT * FROM cmis:document WHERE IN_TREE('"+child.nodeRef+"')
SELECT * FROM cmis:folder WHERE IN_TREE('"+child.nodeRef+"')
But cmis:document giving me incorrect result. For example if I have large number of empty child folders and there s document available after traversing 7-8 folders levels. In this scenario I am receiving 0 result if I use the cmis:document query.
Kindly suggest If any one having good and optimised solution for the same.
I am using 3.4 Version of Alfresco.
With Alfresco 3.4 (extremely old version) there is no efficient way to determine that just via search. I would advise to upgrade to a more recent version which uses SOLR. With that you can perform CMIS/FTS queries that do not need to load any data (which could be truncated by permission checks), but still give you a "numberFound" search result meta attribute for the number of results found in the index.
Dear Team,
I need to fetch files names from folder,
can u suggest me ?
Regards,
Aishwarya Jadhav.
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.