Exclude crawled properties from searching by using Windows PowerShell (FAST Search Server 2010 for SharePoint)(informazioni in lingua inglese)
Aggiornato: 10 febbraio 2011
The default index schema already provides several excluded crawled properties that work well for common content formats. However, because the discovery of crawled properties is content driven, additional properties will be discovered that you must consider when tuning the index schema.
There are several reasons to exclude the content of crawled properties to improve both relevance and recall. It generally does not make sense to add numeric values to the full-text index. You would also not include crawled properties that have sensitive content, or crawled properties that have content that contains words and phrases that occur in most documents in the full-text index. Some crawled properties might be searchable through a managed property mapping, and do not have to be searchable through the default full-text index also.
One way to exclude a crawled property from searching is to set the MapToContents flag on the category to $false and all new crawled properties in that category will no longer get mapped to the full-text index. An alternative approach is to exclude individual crawled properties by setting the IsMappedToContents property on the crawled property object. This will override whatever value its category has for MapToContents.
In this article:
Exclude a category from searching
Exclude a crawled property from searching
Exclude a category from searching
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 to display all categories:
Get-FASTSearchMetadataCategory >> CrawledPropertyCount DiscoverNewProperties MapToContents Name >> 133 True True SharePoint >> 15 True True Mail >> 25 True True Office >> 54 True True Basic >> 52 True True Web >> 15 True True OutsideIn >> 10 False False MESG Lingustics >> 10 True False Enterprise Crawler >> 3 False False Format Information >> 7 True False Managed Metadata >> 0 True True JDBC >> 19 True True Lotus Notes >> 0 True False People >> 3 True False Notes >> 0 True True Business Data >> 1 False False FAST Search Connector
Exclude category from searching:
Set-FASTSearchMetadataCategory -Name "<CategoryName>" -MapToContents 0 >> CrawledPropertyCount DiscoverNewProperties MapToContents Name >> 0 True False JDBC
Where:
- <CategoryName> is the name of the category that you want to exclude from searching, for example JDBC.
Verify that the category has been excluded from searching:
Get-FASTSearchMetadataCategory >> CrawledPropertyCount DiscoverNewProperties MapToContents Name >> 133 True True SharePoint >> 15 True True Mail >> 25 True True Office >> 54 True True Basic >> 52 True True Web >> 15 True True OutsideIn >> 10 False False MESG Lingustics >> 10 True False Enterprise Crawler >> 3 False False Format Information >> 7 True False Managed Metadata >> 0 True False JDBC >> 19 True True Lotus Notes >> 0 True False People >> 3 True False Notes >> 0 True True Business Data >> 1 False False FAST Search Connector
See also
Category.MapToContents Property
Get-FASTSearchMetadataCategory
Exclude a crawled property from searching
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):
$CrawledProperty = Get-FASTSearchMetadataCrawledProperty -Name "<CrawledPropertyName>"
Where:
- <CrawledPropertyName> is the name of the crawled property that you want to exclude from searching, for example ows_WorkPhone.
Exclude the crawled property from searching:
Set-FASTSearchMetadataCrawledProperty -CrawledProperty $CrawledProperty -IsMappedToContents $false >>CategoryName : SharePoint >>IsMappedtoContents : False >>IsNameEnum : False >>IsMultiValued : False >>Name : ows_WorkPhone >>Propset : 00130329-0000-0130-c000-000000131346 >>VariantType : 31
See also
CrawledProperty.IsMappedToContents Property
Get-FASTSearchMetadataCrawledProperty
Cronologia delle modifiche
Data | Descrizione | Motivo |
---|---|---|
10 febbraio 2011 |
2011/02/07 |
Aggiornamento contenuto |
12 maggio 2010 |
Pubblicazione iniziale |