Use CONTAINS clause combined with PATH expression.
https://pavelmakhov.com/2015/10/cmis-path-query/
It returns error 500
{
"query": {"language": "cmis",
"query": "select * from cmis:document
where contains("PATH:\"/app:company_home/st:sites/cm:MySite/cm:documentLibrary//*\" AND TYPE:\"cm:folder\" AND cm:name:\"MyFolder\"")"}
}
{ "query": { "query": "select * from cmis:folder
where cmis:name='MyFolder' AND
contains('PATH:\"/app:company_home/st:sites/cm:MySite/cm:documentLibrary//*\"')", "language": "cmis" } }
Sorry, but it doesn't even run that query.
Is it possible to do that with lucene language ? From multiple folders ?
Thanks
{ "query": { "query": "select * from cmis:folder where cmis:name='MyFolder' AND contains('PATH:\"/app:company_home/st:sites/cm:MySite/cm:documentLibrary//*\"')", "language": "cmis" } }
This is working from my side, what error are you getting?
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.