Loading TOC...

MarkLogic 12 EA 2 Product Documentation
cts:directory-query-depth

cts:directory-query-depth(
   $query as cts:directory-query
) as xs:string

Summary

Returns the depth used to construct the specified query.

Parameters
query A query.

Example

let $query := cts:directory-query(("/reports/", "/analysis/"))
return
cts:directory-query-depth($query)
  => 1

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