atom feed5 messages in com.marklogic.developer.generalRe: [MarkLogic Dev General] Retrievin...
FromSent OnAttachments
Pooja RajputNov 9, 2017 3:11 pm 
Ron HitchensNov 9, 2017 3:13 pm 
Pooja RajputNov 9, 2017 3:17 pm 
Justin MakeigNov 9, 2017 5:02 pm 
Pooja RajputNov 10, 2017 11:18 am 
Subject:Re: [MarkLogic Dev General] Retrieving collections based on document uri
From:Justin Makeig (
Date:Nov 9, 2017 5:02:28 pm

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
<<>> 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

[] On Behalf Of Ron Hitchens Sent: Thursday, November 9, 2017 4:14 PM To: MarkLogic Developer Discussion
<<>> Subject: Re: [MarkLogic Dev General] Retrieving collections based on document

---- Ron Hitchens<>, +44 7879 358212

On November 9, 2017 at 11:12:18 PM, Pooja Rajput
(<>) 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