Applying changes made to the locale-to-language mappings for OpenSearch

After you have created a custom mappings file or modified the standard mappings file, locale-map.json, apply your changes.

About this task

Even if you've only modified locale-map.json, RWS recommends to delete and then recreate your OpenSearch indexes.

Only if you've created a new mappings file, follow the steps below.

Procedure

  1. In the configuration location of the IQ Combined Index and Query microservice, open the file bootstrap.json for editing.
  2. In the list of property-value pairs, add the following line:
    "initial-documents": "MYLANGUAGEMAPPING"

    where MYLANGUAGEMAPPING is the name of the JSON file that you have created for your mappings, for example, locale-map-custom.json.

  3. Save and close bootstrap.json.
  4. Restart the IQ Combined Index and Query microservice.

What to do next

The mapping file you created is configured in the bootstrap file. The very first time you install the microservice, you set a switch to ensure that the microservice reads the bootstrap configuration and applies the mapping to OpenSearch.