jcr:score(...)as xs:decimal
As described in 6.6.3.1 Column Specifier, a score value is returned for each row the result table. However, how this value is calculated is left up to the implementation. It is not required that its contents always be meaningful.
The XPath functionjcr:score(...) is provided to enable queries to specify score calculation parameters in those implementations that support it.
Thejcr:score(...) function must therefore be supported, but the number and meaning of its parameters is left up to the implementation. Thejcr:score(...) function can be used in either the columns specifier of the query, or the order specifier. It is also possible (though not required) that implementations support multiplejcr:score(...) functions within a single query.
The column within which the score information is returned may be labeled simplyjcr:score or it may be labeled with the signature and parameters of thejcr:score(...) function used. Additional score-related columns may be also returned by implementations that support multiplejcr:score(...) functions with varying parameters (see 8.5.2.4 Pseudo-property, 6.6.5.2 jcr:contains Function, and 8.5.4.5 CONTAINS).
Support for comparingjcr:score(...) in a predicate is not required.