dls:author-query( $author as xs:unsignedLong ) as cts:properties-fragment-query
This function returns a query that matches documents authored by the specified user.
Parameters | |
---|---|
author | The id of the user who authored the documents. |
dls-user
role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
xquery version "1.0-ml"; import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy"; cts:search(fn:doc(), dls:author-query(xdmp:user("Jim"))) (: Returns all of the documents authored by 'Jim'. :)