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