Loading TOC...

cts:lsqt-query-weight

cts:lsqt-query-weight(
   $query as cts:lsqt-query
) as xs:double

Summary

Returns the weight with which the specified query was constructed.

Parameters
query A query.

Example

let $query :=
  cts:lsqt-query("temporal",
                 xs:dateTime("2014-09-03T15:26:41.452342-07:00"),
		 "cached-incremental", xs:double("3.13"))
return
  cts:lsqt-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.