Loading TOC...

admin.forestIsRangePolicyRangeSet

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

Summary

This function returns fn:false() if the specified forest has neither the lower boundary nor the upper boundary set. Otherwise, it returns fn: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');
var config = admin.getConfiguration()
var 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.