MarkLogic Server 11.0 Product Documentation
dom:configuration-set-default-domain

dom:configuration-set-default-domain(
   $domain-id as xs:unsignedLong
) as empty-sequence()

Summary

Set a new default domain for the CPF configuration.

Parameters
domain-id The domain ID of the default domain.

Example

xquery version "1.0-ml";
import module namespace dom = "http://marklogic.com/cpf/domains" 
		  at "/MarkLogic/cpf/domains.xqy";

dom:configuration-set-default-domain( 
   fn:data(dom:get("my-domain")/dom:domain-id) )
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy