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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2.<strong>1.1</strong>4.2.4.5 SCORE() predicate function<br />

BNF grammar structure: SCORE ()<br />

Usage:<br />

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

by a repository. (See previous section.)<br />

Inputs:<br />

No inputs MUST be provided for this predicate function.<br />

Return value:<br />

The SCORE() predicate function returns a decimal value in the interval [0,1].<br />

• A repository MUST return the value 0 if the object is considered by the repository as having<br />

absolutely no relevance with respect to the CONTAINS() function specified in the query.<br />

• A repository MUST return the value 1 if the object is considered by the repository as having<br />

absolutely complete relevance with respect to the CONTAINS() function specified in the<br />

query.<br />

Constraints:<br />

• The SCORE() function MUST only be used in queries that also include a CONTAINS() predicate<br />

function.<br />

• The SCORE() function MUST only be used in the SELECT clause of a query. It MUST NOT<br />

be used in the WHERE clause or in the ORDER BY clause.<br />

• An alias column name defined for the SCORE() function call in the SELECT clause (i.e.,<br />

SELECT SCORE() AS column_name ...) may be used in the ORDER BY clause.<br />

• If SCORE() is included in the SELECT clause and an alias column name is not provided, then<br />

a query name of SEARCH_SCORE is used for the query output, and the property definition id<br />

is repository-specific.<br />

2.<strong>1.1</strong>4.2.4.6 IN_FOLDER() predicate function<br />

BNF grammar structure: IN_FOLDER( [ , ] )<br />

Usage:<br />

This is a predicate function that tests whether or not a candidate object is a child-object of the<br />

folder object identified by the given .<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 110 of 331

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

Saved successfully!

Ooh no, something went wrong!