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

 

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

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.

  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

SpellCheckerContext Class

Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)

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.

  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

SpellCheckerContext Class

Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)

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

SpellCheckerContext Class

Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)

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

SpellCheckerContext Class

Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)

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

SpellCheckerContext Class

Spell tuning cmdlets (FAST Search Server 2010 for SharePoint)