MarkLogic Server 11.0 Product Documentation
cts:near-query-distance

cts:near-query-distance(
   $query as cts:near-query
) as xs:integer

Summary

Returns the distance used to construct the near query.

Parameters
query A query.

Example

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