
admin.clusterSetLanguageBaseline( config as element(configuration), baseline as 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.
const admin = require('/MarkLogic/admin.xqy');
const cfg = admin.getConfiguration()
admin.clusterSetLanguageBaseline(cfg, "ml9")
//Assigns 'ml9' as the language baseline of this cluster.
//Use admin.saveConfiguration to save the changes to the configuration
//or pass the configuration to other Admin API functions to make other
//changes.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.