Set-FASTSearchMetadataCrawledPropertyMapping
指定哪些已爬网属性映射到特定托管属性。
语法
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>]
说明
此 cmdlet 使用作为参数 (CrawledPropertyMapping) 指定的一组映射替换托管属性的已爬网属性映射。 将删除该托管属性的所有其他现有已爬网属性映射。
有关 FAST Search Server 2010 for SharePoint cmdlet 的权限和最新信息,请参阅联机文档 (https://go.microsoft.com/fwlink/?LinkId=163227) 。
示例
示例 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
本示例将已爬网属性映射从托管属性“title”添加到托管属性“extendedtitle”。
该示例首先使用 GetCrawledPropertyMappings () 检索名为“title”的托管属性的已爬网属性映射列表。 然后它调用使用该列表作为参数的 Set-FASTSearchMetadataCrawledPropertyMapping。 这将替换托管属性“extendedtitle”的任何现有已爬网属性映射。
参数
-CrawledPropertyMapping
适用:FAST Server for SharePoint 2010
应用于指定的托管属性的已爬网属性映射的列表。 列表中的顺序控制当存在多个已爬网属性时使用哪个已爬网属性。 列表必须包括一个或多个 Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledPropertyImpl 对象。
参数属性
| 类型: | System.Collections.Generic.List`1[Microsoft.SharePoint.Search.Extended.Administration.Schema.CrawledProperty] |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ManagedProperty
适用:FAST Server for SharePoint 2010
一个代表托管属性的对象。
参数属性
| 类型: | ManagedProperty |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ManagedProperty
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
-Name
适用:FAST Server for SharePoint 2010
要更新其已爬网属性映射的托管属性的名称。
参数属性
| 类型: | String |
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
| 别名: | ManagedPropertyName, 网络 |
参数集
Name
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | True |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。