问题
I'm wondering why this has happened. May I know what all scenario's might have lead to this situation?
回答1:
It is not usual for this to happen. It usually involves document insertions into explicit forests, or by re-attaching forests with documents at uris that are already in use. Fast-loading options of MLCP and the MapReduce connector can have that effect too. MLCP prints a warning for that reason.
Avoid insertion into explicit forests, and use fast-loading options with care.
For more details on how this can happen, and how to recover from such a situation, please check this article from our Helpdesk Knowledgebase:
https://help.marklogic.com/knowledgebase/article/View/22/16/handling-xdmp-dbdupuri-errors
HTH!
来源:https://stackoverflow.com/questions/50888962/why-are-there-2-documents-on-the-same-uri