dls:latest-validation-results() as element(dls:validation-results)?
Returns a report describing the status of an upgrade from a pre-MarkLogic 8 DLS repository.
dls-admin
role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-admin
xquery version "1.0-ml"; import module namespace dls = "http://marklogic.com/xdmp/dls" at "/MarkLogic/dls.xqy"; dls:latest-validation-results() (: When the upgrade is complete the results should look like this :) ==> <dls:validation-results xmlns:dls="http://marklogic.com/xdmp/dls"> <dls:validation-status>complete</dls:validation-status> <dls:validation-date>2014-10-21T22:04:12.434317-04:00</dls:validation-date> <dls:database-documents>5059544</dls:database-documents> <dls:managed-documents>2405404</dls:managed-documents> <dls:managed-versions>2546854</dls:managed-versions> <dls:latest-property>2405404</dls:latest-property> <dls:latest-collection>2405404</dls:latest-collection> <dls:latest-or-collection>2405404</dls:latest-or-collection> <dls:latest-and-collection>2405404</dls:latest-and-collection> <dls:not-upgraded>0</dls:not-upgraded> <dls:bare-versions>1</dls:bare-versions> <dls:invalid-collection>0</dls:invalid-collection> </dls:validation-results>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.