MarkLogic 9 Product Documentation
cts:reverse-query-weight

cts:reverse-query-weight(
   $query as cts:reverse-query
) as xs:double

Summary

Returns the weight with which the specified query was constructed.

Parameters
query A query.

Example

let $query := <query>{cts:word-query("hello")}</query>
let $x := <bar>hello</bar>
let $rev := cts:reverse-query($x)
return cts:reverse-query-weight($rev)

  => 1
Powered by MarkLogic Server | Terms of Use | Privacy Policy