admin.databaseOneTimeMergeBlackout( limit as Number, merge-priority as String, start as Date, end as Date?, duration as xs.duration? ) as element(db.mergeBlackout)
This function constructs a one-time merge-blackout specification.
const admin = require('/MarkLogic/admin.xqy'); admin.databaseOneTimeMergeBlackout(500, "lower", xs.dateTime("2008-02-14T09:45:00"), null, xs.dayTimeDuration("PT3H") ) //returns the oneTime mergeBlackout specification. //Use admin.saveConfiguration to save these changes.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.