2.8.5.3 Add Synonyms and Stopword files in OpenSearch

This section describes how to add Synonyms and Stopword files in OpenSearch.

To consider the similarity when performing the OpenSearch, you can add the synonyms and stopword files in the OpenSearch.

To add synonyms and stopword files in OpenSearch:

  1. Create a folder in the name of “analysis” in the <OpenSearch_Installation_path>/config directory.
  2. You can add your synonyms and stopwords to these files and place the files in the analysis folder:
    • Cardinal_ordinal.txt
    • Country.txt
    • Gender.txt
    • Namestop.txt
    • Name_synonym.txt
    • Organisation_strip.txt
    • Organisation_suffix.txt
    • Synonym.txt
    • Title.txt

    Note:

    • User can decide to provide any data in the Stopword or Synonym files.
    • Each Stopword must be provided in a separate line.
    • All related synonyms must be provided in the same line, separated by a comma.
    • All the synonyms must be provided in the same line and ensure that there are no repetitions of the synonym. For example: rob, robi, robie, roby, robbi.