Configure Search Index Language Options

All allowed site locales are indexed by default. To reduce indexing times and overall resource consumption, you can exclude locales from indexing that don't have a particular set of data. You can also upload an extra dictionary for more directed and appropriate search results.

Add locales by selecting site > Merchant Tools > Site Preferences > Locales (with the appropriate permissions).

  1. Select site > Merchant Tools > Search > Search Indexes > Language Options.
  2. In the Language Options section:
    1. Select by locale which stemmer is applied to the indexed search terms.
      For example, select the Chinese - algorithmic stemmer for the Chinese locale, and the Chinese - dictionary stemmer for the Chinese (China) locale.
    2. Select which active locales are required to be indexed by checking that locale in the Indexed column.
      By default, all locales should be indexed, unless they are disabled by Commerce Cloud B2C Commerce Support.
    3. Click Apply.
  3. If the Chinese - dictionary stemmer is enabled, you see the Upload Custom Dictionary section, where you can upload an extra dictionary for the Chinese - dictionary stemmer to improve its predefined stemming behavior.

    Every site that uses the Chinese - dictionary stemmer also uses this additional dictionary.

    A custom dictionary file is a simple text file (must be named words-cn-custom-dictionary.dic) containing #dictionary without quotes in the first line, and words that are not split during tokenization on each subsequent line.

    The above Chinese stemmer removes the zhi-character "子" at the end of a word, which is used to form a compound word. Though the compound word still has the same meaning as the original noun, it provides less meaningful search results.

    1. Click Choose File.
    2. Select a file and click Open.
    3. Click Upload.
      Upon upload, the old dictionary is overwritten.
  4. In the Manage Custom Dictionary section, you can download and back up the existing dictionary before you upload a new one. You can also clear an uploaded dictionary, after which the original dictionary is used.
  5. Click <<Back to return to the Search Indexes page.
  6. Rebuild the Search Indexes.