Condividi tramite


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

Aggiornato: 10 febbraio 2011

Nota

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

Gg130820.Important(it-it,office.14).gifImportante:
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)(informazioni in lingua inglese)

Add multiple spell checking exceptions

Nota

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)(informazioni in lingua inglese)

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)(informazioni in lingua inglese)

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)(informazioni in lingua inglese)

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)(informazioni in lingua inglese)

Cronologia delle modifiche

Data Descrizione Motivo

10 febbraio 2011

2011/02/07

Aggiornamento contenuto

16 settembre 2010

Pubblicazione iniziale