Export (0) Print
Expand All

Add, remove and display spell checking exceptions by using Windows PowerShell (FAST Search Server 2010 for SharePoint)

FAST Search Server 2010

Published: September 16, 2010

note 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 Important:

Every entry in the spell checking exception list must be a single word. Multi-word entries or phrases are not supported.

  1. 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.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. 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 Note:

In order to add multiple spell checking exceptions, you have to create a collection of the exceptions that you want to add.

  1. 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.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. 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

  1. 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.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. 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

  1. 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.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. 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

  1. 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.

  2. On the Start menu, click All Programs.

  3. Click Microsoft FAST Search Server 2010 for SharePoint.

  4. Click Microsoft FAST Search Server 2010 for SharePoint shell.

  5. 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

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft