MarkLogic 9 Product Documentation
cts:near-query-weight

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

Summary

Returns the weight with which the specified query was constructed.

Parameters
query A query.

Example

let $query := cts:near-query(
                 (cts:word-query("wanted"),
                 cts:word-query("unwanted")),
                 12, "ordered", 5.0)
return
  cts:near-query-weight($query)
  => 5.0
Powered by MarkLogic Server | Terms of Use | Privacy Policy