All Products
Search
Document Center

OpenSearch:Stop word intervention dictionary

Last Updated:Aug 22, 2026

Usage

You can manually apply interventions to the system's built-in stop word dictionary. This process typically involves the following four steps:

  1. Create a stop word intervention dictionary. In the console, navigate to Search Algorithm Center > Retrieval Configuration > Dictionary Management. On the Dictionary Management page, click Create in the upper-right corner. After you select the dictionary type and specify a name, the system creates the intervention dictionary and adds it to the dictionary list.

  2. Add and manage intervention entries. After creating the dictionary, click its name or Manage Entries in the list to open its details page. On this page, you can add and manage intervention entries. Two types of intervention are available:
    - Add a stop word: After you add a stop word, if a term in a query, after word segmentation, matches this stop word, the system excludes the term from the retrieval process.
    - Override a system stop word: If a query contains a term that is a system default stop word, overriding it ensures the system includes the term in the retrieval process.

  3. Use the intervention dictionary. After you create and populate the stop word intervention dictionary, you can apply it to a query analysis rule in any application.

  4. Test and deploy the intervention dictionary. Before you apply a query analysis rule that uses an intervention dictionary to your online environment, test its search performance to ensure the intervention results meet your expectations.

Example

Scenario: An e-commerce shopping guide service uses a query analysis rule with the stop word feature enabled in its OpenSearch application. However, you find an issue in the online environment and decide to use an intervention dictionary to resolve it.

Bad case: A user searches for the query "bananas from Hainan", but few results are returned because the field content only contains the keywords "Hainan" and "banana".

Troubleshooting: One reason is that the character "的" in the query is not recognized by the system as a stop word.

Solution: Create a new stop word intervention dictionary, add "的" as a stop word, and then apply the dictionary to the online query analysis rule.

Procedure:

1. In the console, go to Search Algorithm Center > Retrieval Configuration > Dictionary Management and create a stop word dictionary.

Enter a Name and select "Stop Word" as the Dictionary Type.

2. In the new stop word intervention dictionary, add a new intervention entry. For example, enter '的' in the Stop Word field and select Add as the Intervention Type:

3. On the query analysis page, apply the newly created stop word intervention dictionary to a non-production query analysis rule to test its search performance.

4. Test the search feature to see if it provides the expected results. You will find that a search for "bananas of Hainan" retrieves the result "Hainan bananas" as expected:

Usage notes

  • The dictionary type and name cannot be modified after creation.

  • The stop word must be unique within the intervention list.

  • You can use a single intervention dictionary in multiple query analysis rules.

  • Intervention dictionaries patch the system's built-in dictionary. Therefore, when you use an intervention dictionary, the option to use the system's built-in dictionary is enabled by default.

  • You cannot delete an intervention dictionary if it is used by any query analysis rule, regardless of whether the rule is in a production environment. To delete the dictionary, you must first remove its association from all rules.

Limitations

  • You can create a maximum of 20 stop word intervention dictionaries.

  • You can add only one stop word per intervention entry.

  • Each stop word dictionary can contain a maximum of 500 intervention entries.

  • Stop word intervention entries take effect by matching the items that are generated after word segmentation. For example, if you add "呢" as a stop word, when you query "什么面霜好呢", the term "呢" will not be used for retrieval.

  • The system normalizes all intervention content, converting uppercase letters to lowercase and full-width characters to half-width characters.