clang:language-config-write( $config as element(lang:user-languages) ) as empty-sequence()
This function saves a custom language configuration specification to the cluster configuration files. Calling this function restarts MarkLogic Server.
Parameters | |
---|---|
config | A custom language configuration specification, typically as returned from one of the custom language module functions. |
custom-language-admin-write
role or the following privileges:
http://marklogic.com/xdmp/privileges/custom-language-write
http://marklogic.com/xdmp/privileges/xdmp-write-cluster-config-file/languages.xml
xquery version "1.0-ml"; import module namespace clang = "http://marklogic.com/xdmp/custom-language" at "/MarkLogic/custom-language.xqy"; let $config := clang:language-config-read() let $config := clang:delete-user-language($config,"ca") (: NOTE: This call causes a restart. :) return clang:language-config-write($config)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.