Loading TOC...

MarkLogic 9 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

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