Re: [MarkLogic Dev General] Is there a way to delete a stand-alone properties document?
Thanks, that worked like a charm. On Fri, May 19, 2017 at 2:23 PM, Justin Makeigwrote: > First, why are you working with "stand-alone [un-sic.] properties > documents"? Could your implementation be simplified by storing the > properties in their own documents? There's no real advantage to a > properties fragment, other than being able to access it with the same URI > as its related document. Accessing the contents still requires a join > between two fragments, just like with two separate documents. > > In your particular case, you should be able to remove the properties > fragment with, xdmp:node-delete(xdmp:document-properties($uri)). > > Justin > > > On May 19, 2017, at 4:06 PM, Steve Anderson > wrote: > > > > I'm doing some work with stand-along properties documents, and I want to > be able to delete them. I know I can delete all the properties with a > > > > xdmp:document-set-properties($uri, ()) > > > > but that leaves an empty properties document hanging around. Is there a > way to delete it? > > > > Thanks, > > > > Steve > > ___ > > General mailing list > > General@developer.marklogic.com > > Manage your subscription at: > > http://developer.marklogic.com/mailman/listinfo/general > > > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > > -- Steve ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
Re: [MarkLogic Dev General] Is there a way to delete a stand-alone properties document?
First, why are you working with "stand-alone [un-sic.] properties documents"? Could your implementation be simplified by storing the properties in their own documents? There's no real advantage to a properties fragment, other than being able to access it with the same URI as its related document. Accessing the contents still requires a join between two fragments, just like with two separate documents. In your particular case, you should be able to remove the properties fragment with, xdmp:node-delete(xdmp:document-properties($uri)). Justin > On May 19, 2017, at 4:06 PM, Steve Andersonwrote: > > I'm doing some work with stand-along properties documents, and I want to be > able to delete them. I know I can delete all the properties with a > > xdmp:document-set-properties($uri, ()) > > but that leaves an empty properties document hanging around. Is there a way > to delete it? > > Thanks, > > Steve > ___ > General mailing list > General@developer.marklogic.com > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general smime.p7s Description: S/MIME cryptographic signature ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
[MarkLogic Dev General] Is there a way to delete a stand-alone properties document?
I'm doing some work with stand-along properties documents, and I want to be able to delete them. I know I can delete all the properties with a xdmp:document-set-properties($uri, ()) but that leaves an empty properties document hanging around. Is there a way to delete it? Thanks, Steve ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general