Add or remove items in include and exclude lists by using Windows PowerShell (FAST Search Server 2010 for SharePoint)

 

Applies to: FAST Search Server 2010

This topic explains how to add or remove items in include and exclude lists in Microsoft FAST Search Server 2010 for SharePoint by using Windows PowerShell.

In this topic:

  • Add an item to the property extraction include list by using Windows PowerShell

  • Add an item to the property extraction exclude list by using Windows PowerShell

  • Add multiple items to the property extraction include list by using Windows PowerShell

  • Add multiple items to the property extraction exclude list by using Windows PowerShell

  • Remove all items from the property extraction include list by using Windows PowerShell

  • Remove all items from the property extraction exclude list by using Windows PowerShell

Add an item to the property extraction include list by using Windows PowerShell

  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):

    $entityExtractorContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.EntityExtractorContext 
    $entityExtractors = $entityExtractorContext.TermEntityExtractors 
    $entityExtractor
    foreach ($extractor in $entityExtractors) { if ($extractor.Name -eq "<ExtractorTypeName>") { $entityExtractor = $extractor } }
    $entityExtractor.Inclusions.Add("<InclusionTerm>") 
    

    Where:

    • <ExtractorTypeName> is the kind of term property extractor that is to be populated with a new term. Three term property extractor types are available: companies, locations, and personnames.

    • <InclusionTerm> is the term to be included in entity extraction.

See also

Add an item to the property extraction exclude list by using Windows PowerShell

  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):

    $entityExtractorContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.EntityExtractorContext 
    $entityExtractors = $entityExtractorContext.TermEntityExtractors 
    $entityExtractor
    foreach ($extractor in $entityExtractors) { if ($extractor.Name -eq "<ExtractorTypeName>") { $entityExtractor = $extractor } }
    $entityExtractor.Exclusions.Add("<ExclusionTerm>") 
    

    Where:

    • <ExtractorTypeName> is the kind of term property extractor that is to be populated with a new term. Three term property extractor types are available: companies, locations, and personnames.

    • <ExclusionTerm> is the term that should excluded from entity extraction.

See also

Add multiple items to the property extraction include list by using Windows PowerShell

  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):

    $entityExtractorContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.EntityExtractorContext
    $entityExtractors = $entityExtractorContext.TermEntityExtractors
    $entityExtractor
    foreach ($extractor in $entityExtractors) { if ($extractor.Name -eq "<ExtractorTypeName>") { $entityExtractor = $extractor } }
    foreach ($entityToAdd in $entitiesToAdd) { $extractor.Inclusions.Add( $entityToAdd ) }
    

    Where:

    • <ExtractorTypeName> is the kind of term property extractor that is to be populated with a new term. Three term property extractor types are available: companies, locations, and personnames.

See also

Remove all items from the property extraction include list by using Windows PowerShell

  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):

    $entityExtractorContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.EntityExtractorContext
    $entityExtractors = $entityExtractorContext.TermEntityExtractors
    $entityExtractor
    foreach ($extractor in $entityExtractors) { if ($extractor.Name -eq "<ExtractorTypeName>") { $entityExtractor = $extractor } }
    $entityExtractor.Inclusions.Clear()
    

    Where:

    • <ExtractorTypeName> is the kind of term property extractor the items will be removed from. Three term property extractor types are available: companies, locations, and personnames.

See also

Add multiple items to the property extraction exclude list by using Windows PowerShell

  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):

    $entityExtractorContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.EntityExtractorContext
    $entityExtractors = $entityExtractorContext.TermEntityExtractors
    $entityExtractor
    foreach ($extractor in $entityExtractors) { if ($extractor.Name -eq "<ExtractorTypeName>") { $entityExtractor = $extractor } }
    foreach ($entityToAdd in $entitiesToAdd) { $extractor.Exclusions.Add( $entityToAdd ) }
    

    Where:

    • <ExtractorTypeName> is the kind of term property extractor that is to be populated with a new term. Three term property extractor types are available: companies, locations, and personnames.

See also

Remove all items from the property extraction exclude list by using Windows PowerShell

  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):

    $entityExtractorContext = New-Object -TypeName Microsoft.SharePoint.Search.Extended.Administration.EntityExtractorContext
    $entityExtractors = $entityExtractorContext.TermEntityExtractors
    $entityExtractor
    foreach ($extractor in $entityExtractors) { if ($extractor.Name -eq "<ExtractorTypeName>") { $entityExtractor = $extractor } }
    $entityExtractor.Exclusions.Clear()
    

    Where:

    • <ExtractorTypeName> is the kind of term property extractor the items will be removed from. Three term property extractor types are available: companies, locations, and personnames.

See also