Search code examples
database-migrationmarklogicdatabase-restoremarklogic-7marklogic-10

MarkLogic 10 - database restore from MarkLogic 7 - unable to search managed document in restored data


I am upgrading MarkLogic from 7 to 10. I am trying to restore backup from MarkLogic 7 to MarkLogic 10. Database restored successfully but facing issues with managed documents. I verified managed documents history and it is present in the database. It returns nothing when I try to search for the latest version documents from managed documents using

cts:search(fn:collection(),dls:documents-query()); .

When I tried to check document is managed with below query it returns true.

import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy";
dls:document-is-managed('/entity/[some ID].xml');

Solution

  • You need to perform a bulk upgrade operation on DLS documents from versions of MarkLogic prior to 8. Full details here.