Try our conversational search powered by Generative AI!

Remove Didyoumean ?


One of our customers would like particular search suggestions to be removed. These appear when typing into the search bar as we have developed the code to display the top 3 search suggestions. Of course they can create their own in the editor, the ones I am referring to are the tracked suggestions which come from user data. These do not appear in the Find UI for the editor to manage.

The problem is because users may search for various things on the site, the search suggestions are not necessarily accurate for the keyword or worse may contain profanity.

So for the only thing I can think of is removing user generated suggestions and only using editorial ones; however this would remove good suggestions potentially from the site.

I took a look at the Statistics API but I cannot find anything to remove a Did you mean result, is it possible to do this from code?

Nov 18, 2020 16:24

Hi Janaka,

Might it be possible to filter out the types that you do not require from the Did You Mean / Autocomplete results:

var hits = terms.Hits.Where(x => x.Type == "Editorial").Take(10).Select(h =>
                            new AutocompleteSuggestion()
                                Text = h.Query


Nov 19, 2020 12:44

That might be a good interim solution for now Paul. 

The client does want to be able to show suggested terms but remove ones that cause offence or are not necessarily related.

Nov 19, 2020 12:51

Hi Janaka

Have you looked into this feature?

Mar 19, 2021 11:53
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.