Hello Guys, I was working on MarkLogic 8 using REST API. I want to retrieve all the collections associated with the documents in the database. After going through search documents, We can use the following code:
let $collections := for $doc in fn:doc() return xdmp:document-get-collections(fn:base-uri($doc)) return fn:distinct-values($collections) The above code returns the exact results, Can we get the same results using REST api. Any help would be greatly appreciated. Bhushan Suryawanshi Developer t: +1-212-401-7894 www.xenomorph.com<http://www.xenomorph.com/?mail> | blog<http://xenomorph.typepad.com/?mail> | twitter<http://goo.gl/oaBWO> | linkedin<http://goo.gl/rdi8W> This email is confidential and is intended only for the addressee. If you are not the intended recipient, please note that any dissemination, distribution or copying of this email is strictly prohibited. Any and all estimates, proposals, quotes and fees contained herein are for discussion purposes only and are not contractually binding unless executed in accordance with the standard practices of the Company. Attachments to this message have been virus checked but no guarantee can be made that any attachment is virus free. Please notify us immediately of any problem.
_______________________________________________ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general