Does alfresco support like predicate in CMIS query.
I have a query something like select * from cmis:document where cmisbjectTypeId like '%sometext%'.
This query throws cmisruntimeexception in the code and throws an error in the cmis workbench.
Attached error below.
Hi:
Predicates and LIKES are possible in CMIS-SQL, but cmisbjectTypeId is in fact your content type, usually cmis:document or a custom type.
Regards.
--C.
Hi,
Thanks for the reply. I didnt get what you have said. I was saying LIKE predicate does not work for cmisbjectTypeId as in the below query.
select * from cmis:document where cmisbjectTypeId like '%sometext%'
Sure, for me it's the same behaviour with this CMIS query.
I only wanted to note that you can select from your document types ("cmisbjectTypeId") in the from part
SELECT * FROM my:cars
http://alfrescoblog.com/2014/07/12/alfresco-cmis-tutorial/
Query Examples - Apache Chemistry Samples
Regards.
--C.
select * from cmis:document where cmis:name LIKE '%sometext'
Try this way. It worked for me.
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.