【发布时间】:2019-11-28 10:44:17
【问题描述】:
- 第一次使用
dls:document-insert-and-manage管理文档 - 使用
xdmp:document-insert更新同一文档 文档从 dls 最新版本集合中丢失
cts:search(/scopedIntervention/id , dls:documents-query())-
第一次管理文档
<scopedIntervention> <id>someId12345</id> <scopedInterventionName> First Name </scopedInterventionName> <forTestOnly> true </forTestOnly> <inactive> true </inactive> </scopedIntervention>)``` **Document inserted with versioning** -
验证文档是否存在于最新文档集合中
cts:search(/scopedIntervention/id , dls:documents-query())文档存在于托管的最新集合中
-
更新同一个文档
<scopedIntervention> <id>someId12345</id> <scopedInterventionName> Updated Name </scopedInterventionName> <forTestOnly> true </forTestOnly> <inactive> true </inactive> </scopedIntervention>)``` **Update document to same URI using xdmp:document-insert** -
再次验证文档是否存在于最新文档集合中
cts:search(/scopedIntervention/id , dls:documents-query())文档不在托管的最新集合中(从集合中丢失)
使用以下升级步骤应用 DLS 包后,列表中会显示相同的文档 ```xquery 版本“1.0-ml”; 导入模块命名空间 dls = "http://marklogic.com/xdmp/dls" 在“/MarkLogic/dls.xqy”;
dls:set-upgrade-status(fn:false()),
dls:start-upgrade(),
fn:doc("http://marklogic.com/dls/upgrade-task-status.xml"),
dls:latest-validation-results(),
dls:set-upgrade-status(fn:true())```
【问题讨论】:
标签: database-migration marklogic database-restore marklogic-7 marklogic-10