Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-22 Thread Michael Blakeley
...@developer.marklogic.com] Namens Michael Blakeley Verzonden: donderdag 22 december 2011 8:11 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without deleting its docs? Have you tried something like this? xdmp:node-delete( xdmp:document

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-22 Thread Geert Josten
2011 18:18 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without deleting its docs? I did some testing with 5.0-1.2, and it looks like there is a conflict with maintain-last-modified (not directory last-modified). Turn off maintain-last-modified

[MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Geert Josten
Hi, I uploaded quite a number of docs, but accidentily forgot to turn off automatic directory creation. Can I delete the directory nodes without deleting any documents underneath? I though xdmp:document-delete on a dir uri should work, but that throws an exception these days. And

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Michael Blakeley
Have you tried something like this? xdmp:node-delete( xdmp:document-properties($directory-uri)) The xdmp:document-properties call should return the document node for the directory fragment. The node-delete should delete it, removing the entire fragment. -- Mike On 21 Dec 2011, at 22:53

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Jason Hunter
I think you can just delete them as if they were documents. Because that's all they are. -jh- On Dec 21, 2011, at 10:53 PM, Geert Josten wrote: Hi, I uploaded quite a number of docs, but accidentily forgot to turn off automatic directory creation. Can I delete the directory nodes without

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Geert Josten
december 2011 8:16 Aan: General MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without deleting its docs? I think you can just delete them as if they were documents. Because that's all they are. -jh- On Dec 21, 2011, at 10:53 PM, Geert Josten wrote: Hi, I

Re: [MarkLogic Dev General] How to delete a dir without deleting its docs?

2011-12-21 Thread Geert Josten
Discussion Onderwerp: Re: [MarkLogic Dev General] How to delete a dir without deleting its docs? Have you tried something like this? xdmp:node-delete( xdmp:document-properties($directory-uri)) The xdmp:document-properties call should return the document node for the directory fragment