01-22-2018 09:12 AM
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.
01-23-2018 03:03 AM
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.
01-23-2018 10:32 AM
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%'
01-25-2018 01:06 AM
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.
05-26-2023 06:38 AM
select * from cmis:document where cmis:name LIKE '%sometext'
Try this way. It worked for me.
Explore our Alfresco products with the links below. Use labels to filter content by product module.