Hi Danny,
Thanks for the info. While I understand that adding a collection updates a document, the domain configuration I used is based on the directory URI, not on collection. In other words I think a document should belong to a collection, not a collection to a document. So if a document is added to a collection for which a collection-based content processing domain exists, then it should trigger an update, but not if a collection is added to a document that is scoped in a directory URI-based content processing domain where no content is changed. It is what it is and I got caught because I added the collection and it prematurely fired the update. I did not think of the ramifications beforehand. The only other suggestion I would have is that by separating an update between content and collection updates, it would effectively provide a means of defining separate collection-based and directory URI-based content processing domains without any overlap. Adding a collection could then be a means of scoping a subset of documents for subsequent processing much like applying a relational database view without triggering any events. Just something to think about. Tim From: [email protected] [mailto:[email protected]] On Behalf Of Danny Sokolsky Sent: Wednesday, August 21, 2013 2:20 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] Does adding a document to a collection trigger a CPF domain? Hi Tim, Yes, adding a document to a collection would fire an update trigger because adding a collection is an update. What you could do is have the updates that add a collection put the document into some state that, when triggered, would have an action that is a noop. -Danny From: [email protected] [mailto:[email protected]] On Behalf Of Tim Sent: Tuesday, August 20, 2013 8:22 PM To: 'MarkLogic Developer Discussion' Subject: [MarkLogic Dev General] Does adding a document to a collection trigger a CPF domain? Hi Folks, I have some documents in a directory URI with a CPF domain tied to trigger actions whenever a document is inserted or updated in that directory URI. I would like to add the documents in this directory URI to a collection (which is more like adding a collection to the document). Will this trigger the CPF actions even though I'm not changing any content in the document? Thank you! Tim Meagher
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
