Correcting a search with did you mean

Did you mean is a search engine function that scans for potential spelling or grammatical errors in user queries and recommends alternative keywords. This feature is designed to assist users in refining their search results.

In this recipe, you will learn how we can create a basic spellcheck version of this feature. Here, we will create our own spellcheck dictionary based on our content itself. When a user types an incorrect spelling or word, we will check its correctness from this dictionary itself and suggest best-suited words.

Getting ready

For this recipe, we need items having Title and Description fields and a document mapper class that we created and used in the previous recipes. Here, we will create a ...

Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.