Loading TOC...

MarkLogic 9 Product Documentation
cts:path-range-query-weight

cts:path-range-query-weight(
   $query as cts:path-range-query
) as xs:double

Summary

Returns the weight with which the specified query was constructed.

Parameters
query A query.

Example

let $query := cts:path-range-query("/a/b/c",">","Jim",
  "collation=http://marklogic.com/collation/", xs:double("3.13"))
return
cts:path-range-query-weight($query)
  => 3.13

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