Our query suggestion system automatically filters profanity from popular queries, but if you wish to filter out additional content (say a competitor’s name), you can blacklist either terms or regex by doing the following:
- Navigate to Search > [[Experience Name]] > Edit as JSON.
- Find the
querySuggestions
object (you can use CTRL+F). - Fill in the popular queries you would like to blacklist using one of the two properties below:
popularQueriesBlacklistedTerms
if you have specific terms to blacklist.popularQueriesBlacklistedRegex
if you want to blacklist a regex pattern. Be sure to validate and test your regex using a tool like https://regex101.com.
Your JSON should use the following format:
"querySuggestions": {
"popularQueriesBlacklistedTerms": [
{
"term": "student loanbrokerage servicespay my loan log"
},
{
"term": "bad query"
}
],
"popularQueriesBlacklistedRegex": [".*bad word.*", "^\d{3}-\d{2}-\d{4}$"],
"universalPrompts": [],
"verticalPrompts": []
}
- You’ll need to wait for the site to re-index before this update will take place. Re-indexing happens on a nightly basis.
Comments
0 comments
Please sign in to leave a comment.