Reputation: 976
I have inserted the XML document into Marklogic DB using dls:document-insert-and-manage function after that I have modified the XML document using dls:document-checkout-update-checkin function, now we have 2 versions available in the ML. But in the 1st version we have only name available and the content got erased.Can you please correct me if anything wrong on my side, especially on configuration ?
Versions
/15/a679_xml_versions/1-a679.xml
/15/a679_xml_versions/2-a679.xml
I have use this query
doc("/15/a679_xml_versions/1-a679.xml")
but the result was
"your query returned an empty sequence"
Upvotes: 1
Views: 202
Reputation: 555
Do you have any retention policies defined? Old versions of documents are kept if they match some retention policy. You can define polices that match documents based on their age, contents, collections, etc.
Here are a couple links, in case you haven't seen them yet.
http://docs.marklogic.com/dls/retention http://docs.marklogic.com/guide/app-dev/dls
Wayne.
Upvotes: 3