Disabling dictionariesAdded by IBM on February 2, 2011 | Version 1 (Original)
|If your organization no longer operates in specific geographies, you can streamline the operation of the Search application by disabling any dictionaries that are no longer needed.
If your organization no longer operates in specific geographies, you can streamline the operation of the Search application by disabling any dictionaries that are no longer needed.
Before you begin
When using administrative commands, you must use the IBM® WebSphere® Application Server wsadmin client. See Starting the wsadmin client
To remove a dictionary from the list of enabled dictionaries, complete the following steps.
- Start the wsadmin client from the following directory of the system on which you installed the deployment manager:
You must start the client from this directory or subsequent commands that you enter do not execute correctly.
- After the wsadmin command environment has initialized, enter the following command to initialize the Search environment and start the Search script interpreter:
When asked to select a server, you can select any server.
- Check out the Search cell-level configuration file using the following command:
- <working_dir> is the temporary directory to which you want to check out the cell level configuration file. This directory must exist on the server where you are running the wsadmin client. Use forward slashes to separate directories in the file path, even if you are using the Microsoft® Windows® operating system.
Note: AIX and Linux only: The directory must grant write permissions or the command will not run successfully.
- <cellName> is the name of the cell that the Search node belongs to. This argument is required. It is also case-sensitive, so type it with care. If you do not know the cell name, you can determine it by typing the following command in the wsadmin command processor:
- To disable a dictionary, use the following command:
Disables the specified LanguageWare® dictionary.
This command accepts one argument:
- languageCode. The language code for the dictionary that you want to delete. This argument is a string value.
The 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-PT) and one for Brazil (pt-BR).
- Check in the changed configuration property keys using the following wsadmin client command:
- To exit the wsadmin client, type exit at the prompt.
- Stop the server or servers hosting the Search application, delete the index, and then restart the Search servers.
The next time the scheduled task runs, it recreates the index.
Parent topic: Configuring dictionaries for Search
Listing enabled dictionaries
Setting the default dictionary
Search language dictionaries