Add, remove and display spell checking exceptions by using Windows PowerShell (FAST Search Server 2010 for SharePoint)
Updated: February 10, 2011
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
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.
-
See also
Add multiple spell checking exceptions
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.
-
See also
Remove a spell checking exception
-
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.
-
See also
Remove all spell checking exceptions
-
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() } }
See also
Display all spell checking exceptions
-
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 } }
See also
Change History
| Date | Description |
|---|---|
|
February 10, 2011 |
Restructured content presentation. |
|
September 16, 2010 |
Initial publication |

Note:
Important: