conceptsdeveloperdid you meanecommerce searchsuggestions
Unified Search
Unified Search is the recommended way to search with Ecommerce Search. It provides access to the following data sources and features from a single endpoint:
In V26, the return models for suggestions, didYouMean, relatedTags, and aiRelatedTags have changed from simple string arrays to object arrays. This provides information about which data sources have hits for each suggestion or tag and allows for future extensibility.
{"suggestions":[{"phrase":"Shorts for women","hits":["Product"]}],"didYouMean":[{"phrase":"Shorts for women"}],"relatedTags":[{"phrase":"gentleman outdoor shoes","hits":["Product","Content"],"tag":"shoes"}],"aiRelatedTags":[{"phrase":"gentleman outdoor shoes","hits":["Product","Content"]}]}
Automatic corrections
If a search phrase returns no results, the first suggestion from Did You Mean is automatically used for a second search, which may return results. This allows misspelled searches to be corrected without the end user having to perform a second search.