Set-FASTSearchMetadataCrawledPropertyMapping

 

Applies to: SharePoint Server 2010

Specifies which crawled properties map into specific managed properties.

Syntax

Set-FASTSearchMetadataCrawledPropertyMapping -CrawledPropertyMapping <List> -ManagedProperty <ManagedProperty>

Set-FASTSearchMetadataCrawledPropertyMapping -CrawledPropertyMapping <List> -Name <String>

Detailed Description

This cmdlet replaces a managed property's crawled property mappings with a set of mappings specified as a parameter (CrawledPropertyMapping). All other existing crawled property mappings for the managed property are removed.

This cmdlet contains more than one parameter set. You may only use parameters from one parameter set, and you may not combine parameters from different parameter sets. When doing simple operations, there is no difference between using the ManagedProperty versus the Name parameter. The only difference is when using the Name parameter you look up the managed property each time, while when using the ManagedProperty parameter you use the object you already have a reference to. However, when dealing with operations involving a large set of objects (for example iterating over all categories), avoiding extra lookups by name can be slightly more efficient. For more information about how to use parameter sets, see Cmdlet Parameter Sets.

Parameters

Parameter Required Type Description

CrawledPropertyMapping

Required

System.Collections.Generic.List

The list of crawled property mappings applied to the specified managed property. The order in the list controls which crawled property is used when multiple crawled properties exist. The list must consist of one or more Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledPropertyImpl objects.

ManagedProperty

Required

Microsoft.SharePoint.Search.Extended.Administration.Schema.ManagedProperty

An object representing a managed property.

Name

Required

System.String

The name of the managed property whose crawled property mappings you are updating.

Input Types

Return Types

Example

---------------EXAMPLE 1-----------------

$title = Get-FASTSearchMetadataManagedProperty -Name title
$extendedtitle = Get-FASTSearchMetadataManagedProperty -name extendedtitle
$mappings_for_title = $title.GetCrawledPropertyMappings()
Set-FASTSearchMetadataCrawledPropertyMapping -CrawledPropertyMapping $mappings_for_title -ManagedProperty $extendedtitle

This example adds the crawled property mappings from the managed property “title” to the managed property “extendedtitle”.

The example first retrieves a list of the crawled property mappings for the managed property named “title” using the GetCrawledPropertyMappings(). It then calls Set-FASTSearchMetadataCrawledPropertyMapping with this list as a parameter. This replaces any existing crawled property mappings for the managed property “extendedtitle”.

See Also

Reference

Get-FASTSearchMetadataCrawledPropertyMapping
New-FASTSearchMetadataCrawledPropertyMapping
Remove-FASTSearchMetadataCrawledPropertyMapping