18.01.2015 Views

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

Content Management Interoperability Services (CMIS) Version 1.1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Usage:<br />

This is a predicate function that encapsulates the full-text search capability that MAY be provided<br />

by a repository. See the optional capability attribute capabilityQuery.<br />

• If the repository's value for the capabilityQuery attribute is fulltextonly, then only<br />

queries that filter based on the full-text content of documents can be fulfilled. Specifically,<br />

only the CONTAINS() predicate function can be included in the WHERE clause.<br />

• If the repository's value for the capabilityQuery attribute is bothseparate, then the<br />

repository can fulfill queries that filter EITHER on the full-text content of documents OR on<br />

their properties, but NOT if both types of filters are included in the same query.<br />

• If the repository's value for the capabilityQuery attribute is bothcombined, then the<br />

repository can fulfill queries that filter on both the full-text content of documents and their<br />

properties in the same query.<br />

Inputs:<br />

The value of this optional parameter MUST be the name of one of the virtual tables<br />

listed in the FROM clause for the query.<br />

• If specified, then the predicate SHOULD only be applied to objects in the specified<br />

virtual table, but a repository MAY ignore the value of the parameter.<br />

• If not specified, applies to the single virtual table. If the query is a join, a server SHOULD<br />

throw an exception if the qualifier is not specified.<br />

The parameter MUST be a character string,<br />

specifying the full-text search criteria.<br />

• The Text Search Expression may be a set of terms or phrases with an optional '-' to<br />

signal negation. A phrase is defined as a word or group of words. A group of words<br />

must be surrounded by double quotes to be considered a single phrase.<br />

• Terms may contain wildcards. The wildcard '*' substitutes for zero or more characters.<br />

The wildcard '' substitutes for exactly one character. The characters '%' and '_', which<br />

are wildcards in LIKE expressions are not considered wildcards in text serach terms.<br />

• Terms separated by whitespace are AND'ed together.<br />

• Terms separated by "OR" are OR'ed together.<br />

• Implicit "AND" has higher precedence than "OR".<br />

• Within a word or phrase, each (single-)quote must also be escaped by a preceding<br />

backslash '\'. Using double single-quotes (") as a SQL-92 way to escape a literal singlequote<br />

(') character SHOULD BE supported as an allowable alternative to the double<br />

character '.<br />

Return value:<br />

The predicate returns a Boolean value.<br />

• The predicate MUST return TRUE if the object is considered by the repository as "relevant"<br />

with respect to the given parameter.<br />

• The predicate MUST return FALSE if the object is considered by the repository as not "relevant"<br />

with respect to the given parameter.<br />

Constraints:<br />

• At most one CONTAINS() function MUST be included in a single query statement. The<br />

repository MUST throw an exception if more than one CONTAINS() function is found.<br />

• The return value of the CONTAINS() function MAY only be included conjunctively (ANDed)<br />

with the aggregate of all other predicates, if there is any, in the WHERE clause.<br />

<strong>CMIS</strong>-v<strong>1.1</strong>-csprd01<br />

Standards Track Work Product<br />

Copyright © OASIS Open 2012. All Rights Reserved.<br />

18 August 2012<br />

Page 109 of 331

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!