You are looking at documentation for an older release. Not what you want? See the current release documentation.
Query: Select all documents that do not contain the "world" word.
Initial data:
document1: Title - node1, content - hello world
document2: Title - node2, content - hello
SELECT * FROM cmis:document WHERE NOT CONTAINS('world')
Query result:
document2.