Take a look at the API docs for:

xdmp:document-remove-collections
xdmp:document-add-collections

You can specify the uri and a list of collections.

On Sep 10, 2012 9:19 PM, "Ankur Patwa" <ankur.pa...@icainformatics.com>
wrote:

> All,
> I want to "tag" documents with collections.
>
> My first problem is that when I try to add a collection for a large amount
> of documents, it takes about 9 mins. Is there a faster way to add documents
> to collections? Please note that the documents are already in the database.
>
> Now let's say I have multiple collections on different documents. Is there
> a smarter and faster way to "detach a document from a collection" i.e.
> remove a specific collection but not delete the documents?
>
> Thanks in advance!
> Sincerely,
> Ankur
>
> NOTICE OF CONFIDENTIALITY: This electronic message, including attachments,
> is for the sole use of the named recipient and may contain confidential or
> privileged information protected by State of Tennessee and Federal
> regulations.  Any unauthorized review, use, disclosure, copying or
> distribution is strictly prohibited.  If you are not the intended recipient
> or have received this communication in error please contact the sender or
> email i...@icainformatics.com and destroy all copies of the original
> message. Thank you.
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
_______________________________________________
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to