Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: FAST Search Server 2010
Note
This article describes how to manage spell checking by using Windows PowerShell. For information about how to manage spell checking by using the graphical user interface, see Manage Spell Checking (Office.com).
In this article the following Windows PowerShell procedures are described:
Add a spell checking exception
Add multiple spell checking exceptions
Remove a spell checking exception
Remove all spell checking exceptions
Display all spell checking exceptions
Important
Every entry in the spell checking exception list must be a single word. Multi-word entries or phrases are not supported.
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$spellCheckerContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.SpellCheckerContext $spellCheckers = $spellCheckerContext.SpellCheckers $spellChecker foreach ($checker in $spellCheckers) { if ($checker.Name -eq "spell check exclusion") { $spellChecker = $checker } } $spellChecker.Exclusions.Add("<ExclusionTerm>")
Where:
- <ExclusionTerm> is the term that you want to excluded from spell checking.
Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)
Note
In order to add multiple spell checking exceptions, you have to create a collection of the exceptions that you want to add.
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$spellCheckerContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.SpellCheckerContext $spellCheckers = $spellCheckerContext.SpellCheckers $spellChecker foreach ($checker in $spellCheckers) { if ($checker.Name -eq "spell check exclusion") { $spellChecker = $checker } } foreach ($exclusionTermToAdd in <$exclusionTermsToAdd>) { $spellChecker.Exclusions.Add($exclusionTermToAdd) }
Where:
- <$exclusionTermsToAdd> is a variable that contains an existing array or collection of strings specifying existing spell checking exceptions to be excluded from spell checking.
Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$spellCheckerContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.SpellCheckerContext $spellCheckers = $spellCheckerContext.SpellCheckers $spellChecker foreach ($checker in $spellCheckers) { if ($checker.Name -eq "spell check exclusion") { $spellChecker = $checker } } $spellChecker.Exclusions.Remove("<ExclusionTerm>")
Where:
- <ExclusionTerm > is the term that you want to remove from the spell checking exception list.
Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$spellCheckerContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.SpellCheckerContext $spellCheckers = $spellCheckerContext.SpellCheckers foreach ($checker in $spellCheckers) { if ($checker.Name -eq "spell check exclusion") { $checker.Exclusions.Clear() } }
Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)
Verify that you meet the following minimum requirements: You are a member of the FASTSearchAdministrators local group on the computer where FAST Search Server 2010 for SharePoint is installed.
On the Start menu, click All Programs.
Click Microsoft FAST Search Server 2010 for SharePoint.
Click Microsoft FAST Search Server 2010 for SharePoint shell.
At the Windows PowerShell command prompt, type the following command(s):
$spellCheckerContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.SpellCheckerContext $spellCheckers = $spellCheckerContext.SpellCheckers $spellChecker foreach ($checker in $spellCheckers) { if ($checker.Name -eq "spell check exclusion") { $spellChecker = $checker } }
Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)