+

Search Tips   |   Advanced Search

Disable dictionaries


Overview

If the organization no longer operates in specific geographies, we can streamline the operation of the Search application by disabling any dictionaries that are no longer needed.


Remove a dictionary from the list of enabled dictionaries

  1. Start wsadmin...

  2. Initialize the Search environment, and start the Search script interpreter:

  3. Check out search-config.xml :

      execfile("searchAdmin.py")
      SearchCellConfig.checkOutConfig("/tmp", "cellName")

    To determine cellName:

    print AdminControl.getCell()

  4. To disable a dictionary:

    SearchCellConfig.disableDictionary(String languageCode)

    Disable the specified LanguageWare dictionary. This command accepts one argument:

    • languageCode

      The language code for the dictionary to delete. 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 an underscore. For example, Portuguese has two variants, one for Portugal (pt_PT) and one for Brazil (pt_BR). When using a code that also specifies a country, use an underscore to separate the language code and the country code rather than a hyphen; otherwise an error will be generated.

    For example:

      SearchCellConfig.disableDictionary("fr")

  5. Check in search-config.xml:

  6. To exit the wsadmin client, type exit at the prompt.

  7. Restart Search servers.

    The next time the scheduled task runs, persisted seedlists are retained after indexing finishes.


Parent topic:
Configure dictionaries for Search


Related:
Enable dictionaries
List enabled dictionaries
Set the default dictionary
Search language dictionaries