admin:cluster-set-language-baseline( $config as element(configuration), $baseline as xs:string ) as element(configuration)
This function sets the language baseline for this cluster. A change to the language baseline requires a restart of the cluster and a reindex to avoid stemming and tokenization anomalies.
Parameters | |
---|---|
config | A configuration specification, typically as returned from one of the Admin module functions. |
baseline | The language baseline to be used in this cluster, either "legacy" or "ml9". |
xquery version "1.0-ml"; import module namespace admin = "http://marklogic.com/xdmp/admin" at "/MarkLogic/admin.xqy"; let $cfg := admin:get-configuration() return admin:cluster-set-language-baseline($cfg, "ml9") (: Assigns 'ml9' as the language baseline of this cluster. Use admin:save-configuration to save the changes to the configuration or pass the configuration to other Admin API functions to make other changes. :)