Loading TOC...

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

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.