You are looking at documentation for an older release. Not what you want? See the current release documentation.
Query: Select all documents that contains "There must" phrase and do not contain the "check-word" term.
Initial data:
document1: content - "There must be test word."
document2: content - "Test word is not here. Another check-word."
document3: content - "There must be check-word."
SELECT * FROM cmis:document WHERE CONTAINS("There must" - "check-word")
Query result:
document1.