I have a java backed webscript. I use SearchService
method to get the NodeRef
of a folder stored in the Alfresco repository in this PATH
:
/app:company_home/app:dictionary/app:models\
I used the LANGUAGE_CMIS_STRICT
in the searchService method like this:
NodeRef activeModelRepositoryNodeRef=searchService.query(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE,
SearchService.LANGUAGE_CMIS_STRICT, "select * cmis:objectId where contains ('PATH:\"/app:company_home/app:dictionary/app:models\"')").getNodeRef(0);
to get the nodeRef of models
folder but i still getting this error in my log when i execute my query:
ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-19] Exception from executeScript: line 1:9 mismatched input 'cmis:objectId' expecting FROM ([@4,9:21='cmis:objectId',<37>,1:9]) in fromClause
Can anybody tell me what i made wrong, or telle me how to get a folder NodeRef
by using LANGUAGE_CMIS_STRICT
in SearchService
query (I don't want to use the LANGUAGE_LUCENE
).
Thanks for any help.