Loading TOC...

MarkLogic 10 Product Documentation
admin.clusterSetLanguageBaseline

admin.clusterSetLanguageBaseline(
   config as element(configuration),
   baseline as String
) as element(configuration)

Summary

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".

Example

  
  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 iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.