简体   繁体   English

Marklogic中具有相同URI的不同文档

[英]Different Documents with the same URI in Marklogic

In the Marklogic XML DB that I am working on, there are two different documents that have the same URI. 在我正在处理的Marklogic XML DB中,有两个具有相同URI的不同文档。 Is legal to have the same URI for different XML docs in Marklogic DB ?? 在Marklogic DB中为不同的XML文档使用相同的URI是合法的吗?

MarkLogic documents are identified by their URI. MarkLogic文档由其URI标识。 You should not have different documents with same URI but it can happen. 您不应该使用具有相同URI的不同文档,但它可能会发生。 Take a look at this link https://help.marklogic.com/knowledgebase/article/View/22/0/handling-xdmp-dbdupuri-errors . 请看这个链接https://help.marklogic.com/knowledgebase/article/View/22/0/handling-xdmp-dbdupuri-errors It has suggestions on how to resolve the issue 它有关于如何解决问题的建议

You can use same URI there is no violation as such. 您可以使用相同的URI,因为没有违规。 Since your requirement asks for same URI, you can give each document a different collection and hence you will be able to fetch/query your database accordingly. 由于您的要求要求相同的URI,您可以为每个文档提供不同的集合,因此您将能够相应地获取/查询您的数据库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM