Prevent the creation of suggestions in special cases
Disable generation of suggestions from specific search strings to keep unhelpful terms from appearing in suggestions or to prevent disclosure of personal or secure information.
Before you begin
Make sure you're familiar with Java's regular expression pattern syntax. To learn about regular expression pattern syntax, see the Javadoc for the java.regex.util.Pattern class.
Role required: admin
About this task
-
Exclude words or regular expression patterns from auto-complete suggestions and search suggestions.
For example, a user might search on KB2938272. This search string is too opaque to provide a meaningful suggestion. Or, someone might enter a social security number or phone number as search strings which shouldn't be surfaced as suggestions to anyone else. So, you might exclude all search strings that contain multiple numbers. Likewise, if someone uses an expletive in a search string, you may not want to surface that word in suggestions. The Search Suggestion Exclusion List [sys_search_suggestion_blacklist] table contains the list of excluded words and regular expression patterns.Note:In the base system, the Search Suggestion Exclusion List table contains excluded words for English and language-independent regular expression patterns. Search Suggestions inserts additional language-specific excluded words into this table when you activate any of the following languages: Chinese, Czech, Dutch, Finnish, French, German, Hebrew, Hungarian, Italian, Japanese, Norwegian, Polish, Portuguese, Russian, Spanish, Swedish, Thai, or Turkish. -
Assign roles to users that prevent the generation of suggestions from their search strings.
There may be individuals whose searches shouldn't appear in search or auto-complete suggestions for privacy or security reasons. To prevent their searches from generating suggestions, assign them the suggestion_exempt role. This role is unnecessary in most situations. Search Suggestions never shows who performed the initial search. To prevent people from seeing auto-complete suggestions and search suggestions, assign them the cannot_read_suggestions role.
Procedure
-
Navigate to the Search Suggestion Exclusion List
[sys_search_suggestion_blacklist] table's list
view.
- Select All.
- In the Filter field, enter sys_search_suggestion_blacklist.list.
- Press Enter.
-
To make a word or regular expression pattern active or inactive:
- Select the term in the list that you want to activate or deactivate.
- In the Search Suggestion Exclusion List form that appears, select or clear the Active option.
-
To add a new excluded word or regular expression pattern:
-
To assign someone a role that prevents them from seeing auto-complete suggestions and search suggestions, or to prevent their search strings from becoming suggestions:
- Navigate to and select the name of a user.
- In the Roles related list, select Edit.
- To prevent a user from seeing auto-complete suggestions and search suggestions, move cannot_read_suggestions from the Collections column to the Roles List column and select Save.
- To prevent a user's search strings from generating auto-complete suggestions and search suggestions, move suggestion_exempt from the Collections column to the Roles List column and select Save.