cts.elementWordQueryWeight( query as cts.elementWordQuery ) as Number
Returns the weight with which the specified query was constructed.
Parameters | |
---|---|
query | A query. |
const query = cts.elementWordQuery(xs.QName("elem"), "choice of law"); cts.elementWordQueryWeight(query); => 1