
cts:near-query-distance( $query as cts:near-query ) as xs:integer
Returns the distance used to construct the near query.
| Parameters | |
|---|---|
| query | A query. |
let $query := cts:near-query(
cts:word-query("wanted"),
cts:word-query("unwanted"),
12)
return cts:near-query-distance($query)
=> 12
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.