Loading TOC...

MarkLogic 12 EA 2 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)

    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.