To disable “Did you mean” and related searches on search history in Magento 2, follow these steps:
- Go to Stores > Configuration > Catalog > Catalog Search.
- Under General Search Options, disable the following options:
- Enable Search Recommendations
- Enable Search Suggestions
- Click Save Config.
Once you have disabled these options, “Did you mean” and related searches will no longer be displayed on the search results page or in the search history.