You are looking at documentation for an older release. Not what you want? See the current release documentation.
Query: Select all documents which contains word "moon" ordered by score.
Initial data:
document1: content - "Earth-orbital mission, the first manned launch"
document2: content - "from another celestial body - Earth's Moon"
document3: content - "NASA intended to land on the Moon, but a mid-mission technical"
document4: content - "It was the first night launch of a U.S. human"
SELECT cmis:lastModifiedBy, cmis:objectId, cmis:lastModificationDate FROM cmis:document WHERE CONTAINS('moon') ORDER BY SCORE()
Query result:
document2, document3.