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.
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". |
const admin = require('/MarkLogic/admin.xqy'); var 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.