November Happy Hour will be moved to Thursday December 5th.

Remove Didyoumean ?

Vote:
 

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?

#231066
Nov 18, 2020 16:24
Vote:
 

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
                            });

Paul

#231131
Nov 19, 2020 12:44
Vote:
 

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.

#231132
Nov 19, 2020 12:51
Vote:
 

Hi Janaka

Have you looked into this feature?

https://world.episerver.com/documentation/developer-guides/search-navigation/removing-pii-data-from-the-search-index/remove-specific-statistics-from-search-index/

#250997
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.