MarkLogic 12 EA 1 Product Documentation
admin.forestIsRangePolicyRangeSet

admin.forestIsRangePolicyRangeSet(
   config as element(configuration),
   forest-id as (Number|String)
) as Item?

Summary

This function returns false if the specified forest has neither the lower boundary nor the upper boundary set. Otherwise, it returns true.

Parameters
config A configuration specification, typically as returned from one of the Admin module functions.
forest-id The ID of the forest.

Example

const admin = require('/MarkLogic/admin.xqy');
const config = admin.getConfiguration()
const forestid = admin.forestGetId(config, "myForest")
admin.forestIsRangePolicyRangeSet(config, forestid)

    
Powered by MarkLogic Server | Terms of Use | Privacy Policy