Share via


Exclude crawled properties from searching by using Windows PowerShell (FAST Search Server 2010 for SharePoint)

 

Applies to: FAST Search Server 2010

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

  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 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
    
  6. 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.
  7. 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

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

    $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.
  6. 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