
cts:near-query-weight( $query as cts:near-query ) as xs:double
Returns the weight with which the specified query was constructed.
| Parameters | |
|---|---|
| query | A query. | 
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
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.