cts.similarQueryWeight( query as cts.similarQuery ) as Number
Returns the weight with which the specified query was constructed.
const query = cts.similarQuery(cts.doc("/mydoc.xml")); cts.similarQueryWeight(query);