The expression you embedded in CMIS-SQL using the contains() predicate function is full text search query text . If you use 'cpTitolo:allegat *'(with trailing space),alfresco will treat it as two terms(phrases) combined using "OR"("OR" is the default connective),then it will match all documents of type "cp:metadatiPratica".