Export (0) Print
Expand All

Manage crawled properties by using Windows PowerShell (FAST Search Server 2010 for SharePoint)

FAST Search Server 2010
 

Applies to: FAST Search Server 2010

Topic Last Modified: 2011-01-27

This topic explains how to work with crawled properties in Microsoft FAST Search Server 2010 for SharePoint by using Windows PowerShell.

In this section:

Crawled properties are automatically extracted from crawled content and grouped by category based on the property-set of each crawled property. Each category can be configured individually to discover new crawled properties, or not.

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

    Set-FASTSearchMetadataCategory -Name "<CategoryName>" -DiscoverNewProperties "<Flag>"
    

    Where:

    • <CategoryName> is the name of the category to update.

    • <Flag> is a Boolean indicating whether or not new crawled properties should be discovered for this category. Use $true if crawled properties should be discovered, $false if not.

If a crawled property is discovered and it has a property-set that is not mapped to an existing category, a new category will be created for the property-set as well as the new crawled property. The new category will be named Category # (where # is a category number).

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

    $mp = Get-FASTSearchMetadataManagedProperty -Name "<ManagedPropertyName>" 
    #Fetch all the mappings for the managed property:
    $mappings = $mp.GetCrawledPropertyMappings()
    #Get the crawled properties to be stored in position 1 and position 2:
    $cp1 = Get-FASTSearchMetadataCrawledProperty -Name "<CrawledPropertyName1>"
    $cp2 = Get-FASTSearchMetadataCrawledProperty -Name "<CrawledPropertyName2>"
    #Remove the properties from their current position in the list:
    $mappings.Remove($cp1)
    $mappings.Remove($cp2)
    #Insert the crawled properties in their new positions:
    $mappings.Insert(0, $cp1)
    $mappings.Insert(1, $cp2)
    #Call SetCrawledPropertyMappings(...) to make the update permanent:
    $mp.SetCrawledPropertyMappings($mappings) 
    
    

    Where:

    • <ManagedPropertyName> is the name of the managed property.

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

    $cp = Get-FASTSearchMetadataCrawledProperty -Name "<Name>"
    

    Where:

    • <Name> is the full name of the crawled property.

  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 Windows PowerShell command prompt, type the following command(s):

    $cp = Get-FASTSearchMetadataCrawledProperty -Filter "<Filter>"
    

    Where:

    • <Filter> is part of name of the crawled property.

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

    $category = Get-FASTSearchMetadataCategory -Name "<CategoryName>"
    $unmappedCPs = $category.GetUnmappedCrawledProperties()
    $unmappedCPs[$unmappedCPs.Count-1]
    
    

    Where:

    • <CategoryName> is the name of the category.

noteNote
Crawled properties are added to the UnmappedCrawledProperties list in the order they are reported. The most recently reported properties will be the last items in the list.

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

    $mp = Get-FASTSearchMetadataManagedProperty -Name "<ManagedPropertyName>"
    $cp = Get-FASTSearchMetadataCrawledProperty -Name "<CrawledPropertyName>"
    New-FASTSearchMetadataCrawledPropertyMapping -ManagedProperty $mp -CrawledProperty $cp
    

    Where:

    • <ManagedPropertyName> is the name of the managed property.

    • <CrawledPropertyName> is the name of the crawled property.

noteNote
If there are multiple crawled properties with the same name, a list of crawled properties will be returned instead of a single crawled property object. In such cases you will have to inspect the list to find the crawled property that you want to map to the managed property.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft