I'm trying to make a query to get all history version of a document, but when I use #CMIS Workbench and check the option "search all versions" it gives me an error
I don't know if this problem is just for the Workbench client and I still can't find the way to make a query with all history versions directly calling the repository from share.
Does anybody know if it is impossible to call all versions using CMIS and in the case that it is posible, can you help me to do it.
My query is the next
SELECT * FROM cmis:document AS d WHERE CONTAINS(d, 'PATH:\"/app:company_home/st:sites/cm:my-site/cm:documentLibrary//*\"')
and i'm using it in an Alfresco.util.Ajax.request
Solved! Go to Solution.
An important thing to refer to when connecting to any CMIS repository is its list of capabilities, aka, "Repository Info". The reason is that there are a number of optional features that a CMIS repository can choose to implement or not.
If you check the CMIS Repository Info for Alfresco 5.2, for example, you'll see that "All versions searchable" is set to false (see screenshot).
So this is not possible with Alfresco via CMIS.
An important thing to refer to when connecting to any CMIS repository is its list of capabilities, aka, "Repository Info". The reason is that there are a number of optional features that a CMIS repository can choose to implement or not.
If you check the CMIS Repository Info for Alfresco 5.2, for example, you'll see that "All versions searchable" is set to false (see screenshot).
So this is not possible with Alfresco via CMIS.
Thanks Jeff,
Good point to start is cheking the CMIS Repository Info
I solve my problem using the alfresco REST API versions
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.