MarkLogic 10 Product Documentation
dls.validateAllDocuments

dls.validateAllDocuments(
   verbose as Boolean
) as element(dls.validationResults)

Summary

Returns a report of the status of the DLS upgrade process.

Parameters
verbose

Required Privileges

The dls-admin role is required to run this function, or the privilege:
http://marklogic.com/xdmp/privileges/dls-admin

Example

const dls = require('/MarkLogic/dls');

dls.validateAllDocuments(false);

/*
<dls:validation-results xmlns:dls="http://marklogic.com/xdmp/dls">
  <dls:validation-status>no-dls</dls:validation-status>
  <dls:validation-date>2018-03-14T18:05:39.459792-07:00</dls:validation-date>
  <dls:database-documents>5</dls:database-documents>
  <dls:managed-documents>0</dls:managed-documents>
  <dls:managed-versions>0</dls:managed-versions>
  <dls:latest-property>0</dls:latest-property>
  <dls:latest-collection>0</dls:latest-collection>
  <dls:latest-or-collection>0</dls:latest-or-collection>
  <dls:latest-and-collection>0</dls:latest-and-collection>
  <dls:not-upgraded>0</dls:not-upgraded>
  <dls:bare-versions>0</dls:bare-versions>
  <dls:invalid-collection>0</dls:invalid-collection>
</dls:validation-results>
*/
   
Powered by MarkLogic Server | Terms of Use | Privacy Policy