Blacklists and whitelists
Overview
Blacklists and whitelists primarily control candidate queries for drop-down suggestions, top searches, and search hints. Queries that contain blacklisted keywords are excluded from the candidates. Whitelisted queries are prioritized when they meet the recommendation conditions.
If candidate results contain queries that your business does not want to display, add their keywords to a blacklist to block them. If useful queries are missing or ranked too low, add them to a whitelist for manual intervention.
Blacklist and whitelist intervention is supported for candidate queries in drop-down suggestions, top searches, and search hints.
Procedure
To prioritize or block candidate queries, perform the following steps:
1. Create a dictionary. Choose Search Algorithm Center > Search Guidance > Blacklists and Whitelists, and click Create.
2. Enter a Name, select a Type (Drop-down Suggestion Whitelist or Drop-down Suggestion Blacklist), and click Save.
3. Add intervention entries. Find the dictionary in the blacklist and whitelist list and click Entry Management in the Actions column.
On the entry management page, click Add Intervention Entry. In the dialog box, enter a keyword to block (for example, summer vintage slim-fit dress). Click + Add More to add multiple entries. Then click Save.
4. Add the configured dictionary to the corresponding drop-down suggestion model:
In the configuration information section of the drop-down suggestion model details page, click Configure to open the configuration page and add the corresponding blacklist and whitelist dictionaries.
On the configuration page of the drop-down suggestion model, select the created blacklist dictionary from the Blacklist drop-down list (for example, tang_test_black_1) and the created whitelist dictionary from the Whitelist drop-down list (for example, tang_test_white_1). Then click OK to finish configuring the model.
Usage notes
Blacklists use containment matching. For example, if a blacklist contains the keyword "trash", a candidate query is blocked if any of its tokenized terms contains the term "trash".
If blacklist and whitelist entries conflict, the blacklist takes precedence.
Blacklists support regular expressions.
Changes to blacklists and whitelists take effect in real time without retraining the model.
Effective queries in the top-search whitelist appear at the specified positions. If no recommended query is configured for a position, results are displayed in the order returned by the top-search model.
Effective queries in the search-hint whitelist rotate as recommended search hints.
Blacklists and whitelists referenced by a model cannot be deleted directly.
Limits
A drop-down suggestion blacklist can contain at most 500 queries.
A drop-down suggestion whitelist can contain at most 500 queries.
A top-search blacklist can contain at most 500 queries.
A top-search whitelist can contain at most 10 queries.
A search-hint blacklist can contain at most 500 queries.
A search-hint whitelist can contain at most 3 queries.