Edit

Share via


Set-FASTSearchMetadataCrawledPropertyMapping

Specifies which crawled properties map into specific managed properties.

Syntax

ManagedProperty

Set-FASTSearchMetadataCrawledPropertyMapping

    -CrawledPropertyMapping <System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledProperty]>
    -ManagedProperty <ManagedProperty>
    [<CommonParameters>]

Name

Set-FASTSearchMetadataCrawledPropertyMapping

    -CrawledPropertyMapping <System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledProperty]>
    -Name <String>
    [<CommonParameters>]

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.

For permissions and the most current information about FAST Search Server 2010 for SharePoint cmdlets, see the online documentation, (https://go.microsoft.com/fwlink/?LinkId=163227).

Examples

EXAMPLE 1 (FAST Server for SharePoint 2010)

C:\PS>$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".

Parameters

-CrawledPropertyMapping

Applicable: FAST Server for SharePoint 2010

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.

Parameter properties

Type:

System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledProperty]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ManagedProperty

Applicable: FAST Server for SharePoint 2010

An object representing a managed property.

Parameter properties

Type:ManagedProperty
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ManagedProperty
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-Name

Applicable: FAST Server for SharePoint 2010

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:ManagedPropertyName, N

Parameter sets

Name
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.