You can build a collection query dynamically from the result sequence of collection URIs that xdmp:document-get-collections() returns. For example,
cts:and-query(( … cts:collection-query(xdmp:document-get-collections($uri)), … )…) On Nov 9, 2017, at 3:17 PM, Pooja Rajput <[email protected]<mailto:[email protected]>> wrote: Thanks for the response Ron. I need to use this inside cts-query so that I can filter the type of collections as well. Hence I am looking for similar cts query. Thanks, Pooja From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Ron Hitchens Sent: Thursday, November 9, 2017 4:14 PM To: MarkLogic Developer Discussion <[email protected]<mailto:[email protected]>> Subject: Re: [MarkLogic Dev General] Retrieving collections based on document uri https://docs.marklogic.com/xdmp:document-get-collections ---- Ron Hitchens [email protected]<mailto:[email protected]>, +44 7879 358212 On November 9, 2017 at 11:12:18 PM, Pooja Rajput ([email protected]<mailto:[email protected]>) wrote: Hi Team, I need to retrieve the collections associated with particular document. All I have is document uri. How can I retrieve this info using cts query like xdmp:Document-get-collections provides results. Any example is appreciated. Thanks Pooja _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected]<mailto:[email protected]> Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
