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