MarkLogic 9 Product Documentation
dls:documents-query

dls:documents-query() as cts:query

Summary

This function returns a query that matches the latest versions of the managed documents in the database.

Required Privileges

The dls-user role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-user

Example

  xquery version "1.0-ml";

  import module namespace dls = "http://marklogic.com/xdmp/dls" 
      at "/MarkLogic/dls.xqy";

  cts:search(fn:doc(), dls:documents-query()) 
 
  (: Returns the latest versions of the managed documents in the database. :)
    
Powered by MarkLogic Server | Terms of Use | Privacy Policy