Re: [MarkLogic Dev General] Search and update -- Correction

2015-06-21 Thread David Lee
us functions are really handy for this. From: general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com> [mailto:general-boun...@developer.marklogic.com] On Behalf Of RAVINDER MAAN Sent: Sunday, June 21, 2015 6:21 AM To: general@developer.marklogic.com<mailto:genera

Re: [MarkLogic Dev General] Search and update

2015-06-21 Thread David Lee
eral-boun...@developer.marklogic.com] On Behalf Of RAVINDER MAAN Sent: Sunday, June 21, 2015 6:21 AM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Search and update Hi all I have a update job which search for documents matching criteria and then insert or delete a node in the matching doc

[MarkLogic Dev General] Search and update

2015-06-21 Thread RAVINDER MAAN
Hi all I have a update job which search for documents matching criteria and then insert or delete a node in the matching docs. I know that if search and update is in same transaction it causes lock problems. So search return URI of the docs and in second request I do fn:doc and node insert or repl