Taboos
Taboos are words or sentences that should not be returned when searching for suggestions. This can include products that are inappropriate for children or adolescents, or items restricted due to regulatory requirements, such as painkillers. Any suggestion or related tag that contains a taboo will be filtered out.
Management
Taboos are managed either through the UI or through the API. They are linked to a segment via a dictionary in the same way as synonyms and misspellings. Taboos are used when the index settings are published.
Matching
The filtering of a taboo term can be modified by specifying a match type for the taboo.
Match type | Default | Description |
---|---|---|
Contains | Yes | Term matches anywhere in suggestion with partial match |
Word | Term matches word in suggestion | |
Exact | Term matches suggestion exactly |
Suggestion indexing
The suggestions that contain taboos are still indexed, but they are removed from the results. The same applies to related tags.