cancel
Showing results for 
Search instead for 
Did you mean: 

Show Spellcheck only if, Suggested Keyword have valid result

Eldhos
Participant
0 Kudos
148

Hi Team,

I have a requirement in my project as follows.

Customer site is implemented with Spell Check. Whenever we initiate search, Search result come with Spell check/ Spell suggestions. 

However, when user click on spell check link, there are scenarios where User is getting empty results. This is a bad experience for user.

That is,

1. If user search "ADE", Then search result may come empty or there will be a search result.

2. Along with Step 1, Keyword suggestion will come "ACDE"

3. When user click on "ACDE", User will get empty result. This is a bad user experience.

 

Hence We are asked to do a change in a way that, the suggested spelling "ACDE" should show only if "ACDE" will give search results. 

In other words, Spell check keyword should not show if it does not have any search result.

Can anyone help me here?

 

Regards,

Eldhos Kurian

 

Regards,

Eldhos

View Entire Topic
Harish_Vatsa
Active Contributor

Hi Eldhos,

If you’re using SOLR, set it to pre-check whether suggested terms actually return results before displaying them. Additionally, you can add a check on your system’s backend to filter out spell-check suggestions that don’t have any matching results, ensuring only helpful suggestions appear to the user.

Thanks,