Sharepoint 2013 - Query Spelling Suggestions

Sep 05, 2013 at 10:42 PM

When searching we sometimes spell words incorrectly. We often see it in Google, Did you mean: Sharepoint ? One of the features of SharePoint 2013 Search are Query Spelling Suggestions that process the words from the search query and control if they are spelled correctly.

In Sharepoint 2013 it is controlled using Query Spelling Suggestions, it will look something like this
There are two types of Query spelling suggestions works with two types of spelling dictionary viz Static and Dynamic mode
Dynamic - The query spelling correction uses the content-aligned dictionary
Static - The query spelling correction uses the out of the box static spelling dictionaries

You can configure the dictionary mode using the following command

$ssa = Get-SPEnterpriseSearchServiceApplication
Get-SPEnterpriseSearchQuerySpellingCorrection -SearchApplication $ssa

Set-SPEnterpriseSearchQuerySpellingCorrection -SearchApplication $ssa -SpellingDictionary Static

Query Spelling Exclusions and Query Spelling Inclusions:
SharePoint 2013 uses two Global Term Sets called Query Spelling Exclusions and Query Spelling Inclusions to define the query spelling suggestions.
1. Query Spelling Exclusions - Term Sets/Words that you never want to be suggested.
2. Query Spelling Inclusions - Term Sets/ Words that you want to be suggested

For Eg : If user searches for 'Dhawal' you know that it's incorrect spelling, so this word you can enter it in the Query Spelling Inclusions as shown below

So here whenever user searches for the 'Dhawal', 'Dhavall' or 'Dhawall', Search will ask if Did You Mean 'Dhaval'

Note : You will have to execute 'Search Custom Dictionaries Update' Timer Job so that your query spelling suggestions are reflected. 

Found this article by Dhaval Shah valuable? Help by Sharing ...

  • Click on the banners at the top of article or in the right panel to visit my blog's sponsors. They are all hand-picked and are selected based on providing great products and services to the SharePoint community.
  • I’d be very grateful if you’d help it spread by Sharing. Below, you should find links to sharing this article on your favorite social media sites.
Related Posts by Dhaval Shah blog comments powered by Disqus