Hypernyms and Hyponyms
A hypernym is a broad term for a group of products. A hyponym is a term for an item in the group that the hypernym describes. A hypernym returns the results of all of its hyponyms, but the hyponyms only return their own results. You can exclude specific hypernyms using negative hypernyms.
The total number of search results on the hypernym might be less than for each of the hyponyms if there is overlap in the categories you are searching on. In the example below, if you search for Tunic, Shirt, and Blouse individually, the sum of the search hits is 13. However, when you search for the hypernym "Tops", which has Tunic, Shirt, and Blouse as hyponyms, only nine search hits are returned. This is because several of the search hits contain more than one of the hyponyms. This is because the hypernym search removes duplicate results returned in the individual searches.
Negative Hypernyms
If you enter hypernyms (single or multi-word) with the '-' negative operator in front of it, products containing the negative hypernym are not returned in the search results.
If handbag is a hyponym of the bag hypernym, a user search that must not include bag is expanded into a search that must not include either the handbag or bag keywords.
User Query | Actual Salesforce B2C Commerce Store Query |
---|---|
-bag | NOT handbag AND NOT bag |