Search dictionary rule types for handling keyword terms
Key Takeaway
Match the keyword problem to the right rule type. Synonyms link terms in every direction, and hypernyms link one way. A dictionary change reaches the storefront only after you rebuild the matching index.
A search dictionary is a set of rules that changes how the keywords a shopper types match products. Each rule type handles a different keyword problem. A business requirement about a search term comes down to choosing the right rule type and setting it up correctly. The details matter, because a missing comma or a misplaced hyphen can stop a rule from working.
Search dictionary rule types
The B2C Commerce Search Dictionary module manages all search dictionaries from one place. Its rule types include the ones below, and each one handles a different keyword problem.
| Rule type | Keyword problem it handles |
|---|---|
| Synonyms | Terms that mean the same thing |
| Hypernyms and hyponyms | Broad terms that cover narrower ones |
| Common phrases | Multi-word phrases |
| Compound words | Joined words |
| Stop words | Words that should be ignored |
| Category name exclusions | Category names that shouldn't be indexed as keywords for their products |
Stemming exceptions are another rule type in the module.