Home

 

Enable dictionaries

Use administrative commands to enable the dictionaries to use with search.

When using administrative commands, use the IBM WebSphere Application Server wsadmin client. See Start wsadmin for details.


The search feature provides globalization support by using different dictionary files for different languages. Each dictionary file must be enabled in the search configuration file before processing. The dictionaries that are enabled in the search configuration file are loaded into memory at server start time when the search feature is started.

To enable dictionaries for use with search...

  1. Start wsadmin so that you can access the search configuration file.

  2. After the wsadmin command environment has initialized, use one of the following commands to initialize the search environment and start the search script interpreter:

    When asked to select a server, you can select any server.

  3. Check out the search cell-level configuration file...

    SearchCellConfig.checkOutConfig("<working_dir>", "<cellName>")

    where:

    • <working_dir> is the temporary to which you want to check out the cell level configuration file. This must exist on the server where you are running wsadmin.

    • <cellName> is the name of the cell that the search node belongs to. This argument is required even in stand-alone deployments. This argument is also case-sensitive, so type it with care. If you do not know the cell name, do one of the following to determine it:

      • Stand-alone deployment: Look at the name after the following in the file system:

        WAS_HOME\profiles\profile_name\config\cells\

      • Network deployment: From wsadmin...

        print AdminControl.getCell()

    For example:

      SearchCellConfig.checkOutConfig("c:/search_temp", "SearchServerNode01Cell")
      

  4. To add a specified dictionary to the list of configured dictionaries...

      SearchCellConfig.addDictionary(String languageCode, String dictionaryPath)
      

    where:

    • languageCode is the language code for the dictionary that you want to add.

      This language code typically comprises two letters conforming to the ISO standard 639-1:2002 that identifies the primary language of the dictionary. However, there are some codes that additionally define a country or variant, in which case these constituent parts are separated by a hyphen. For example, Portuguese has two variants, one for Portugal (pt) and one for Brazil (pt-BR).

    • dictionaryPath is the path to the dictionary.

    For example:

      SearchCellConfig.addDictionary("fr","/opt/WebSphere/LotusConnections/dictionaries')
      

  5. Check in the changed configuration property keys using the following wsadmin client command:

    SearchCellConfig.checkInConfig()

  6. To exit wsadmin, type

    exit

    at the prompt.

  7. Stop the server or servers hosting the search feature, delete the index, and then restart the search servers. The next time the scheduled task fires, it recreates the index.


Configure dictionaries for search

 

Related tasks

Apply property changes

Enable users to set a language preference

 

Related reference


SearchCellConfig commands


+

Search Tips   |   Advanced Search