Hi, Bushan:
You can make a PATCH request to insert, replace, or delete nodes within an
existing document:
http://docs.marklogic.com/REST/PATCH/v1/documents
Other write requests replace the entire document or its metadata or both.
Hoping that clarifies,
Erik Hennum
________________________________
From: [email protected]
[[email protected]] on behalf of Bhushan Suryawanshi
[[email protected]]
Sent: Thursday, January 12, 2017 1:51 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Query: While inserting existing data again
Hi Guys,
I am using MarkLogic8 along with REST API.
I already have a document a.xml in the database with some content, but when we
re-insert a.xml with updated content.
I have following questions
1) Will MarkLogic upload the existing document?
2) Will MarkLogic merge the existing document with new content? If yes, is
there any configuring parameter to do so.
Thanks & Regards,
Bhushan Suryawanshi
Developer
t: +1-212-401-7894
www.xenomorph.com<http://www.xenomorph.com/?mail> |
blog<http://xenomorph.typepad.com/?mail> | twitter<http://goo.gl/oaBWO> |
linkedin<http://goo.gl/rdi8W>
This email is confidential and is intended only for the addressee. If you are
not the intended recipient, please note that any dissemination, distribution or
copying of this email is strictly prohibited. Any and all estimates, proposals,
quotes and fees contained herein are for discussion purposes only and are not
contractually binding unless executed in accordance with the standard practices
of the Company. Attachments to this message have been virus checked but no
guarantee can be made that any attachment is virus free. Please notify us
immediately of any problem.
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general