admin.databaseRecurringMergeBlackout( limit as Number, merge-priority as String, days as String[], start-time as (Number|String)?, end-time as (Number|String)?, duration as xs.duration? ) as element(db.mergeBlackout)
This function constructs a merge-blackout specification.
const admin = require('/MarkLogic/admin.xqy'); admin.databaseRecurringMergeBlackout(500, "lower", "monday", xs.time("09:45:00"), xs.time("11:45:00"), [] ) //returns the 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.