
cts.nearQueryDistance( query as cts.nearQuery ) as Number
Returns the distance used to construct the near query.
| Parameters | |
|---|---|
| query | A query. |
const query = cts.nearQuery(
[cts.wordQuery("wanted"),
cts.wordQuery("unwanted")],
12);
cts.nearQueryDistance(query);
=> 12
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.