Remove-FASTSearchMetadataCrawledPropertyMapping

移除 crawled-property-to-managed-property 對應。

Syntax

Remove-FASTSearchMetadataCrawledPropertyMapping
      -CrawledProperty <CrawledProperty>
      -ManagedProperty <ManagedProperty>
      [-Confirm]
      [-Force]
      [-WhatIf]
      [<CommonParameters>]

Description

此 Cmdlet 會移除編目屬性與 Managed 屬性的對應。 移除對應之後,Managed 屬性和編目屬性仍然存在。

Cmdlet 參數都是物件,必須個別擷取。

必須重新編目/重新提供內容,搜尋索引才能反映已移除對應。

如需 FAST Search Server 2010 for SharePoint Cmdlet 的許可權和最新資訊,請參閱線上檔 (https://go.microsoft.com/fwlink/?LinkId=163227) 。

範例

--------------- 範例 1----------------- (適用於 SharePoint 2010 的 FAST Server)

$title = Get-FASTSearchMetadataManagedProperty -name title
$crawledproperties = $title.GetCrawledPropertyMappings()
$crawledproperties # To List the output before the removal
Remove-FASTSearchMetadataCrawledPropertyMapping -managedproperty $title -crawledproperty $crawledproperties[4]
$crawledproperties # To list the output after the removal

本範例會移除編目屬性 「sitemap.title」 與 Managed 屬性 「title」 的對應。

此範例會呼叫 Managed 屬性所公開的 GetCrawledPropertyMappings () 方法呼叫,但您也可以使用 Get-FASTSearchMetadataCrawledProperty 找到編目屬性。 GetCrawledPropertyMappings () 的傳回值是編目屬性的陣列,其中最後一個屬性是 「sitemap.title」 編目屬性對應。 陣列索引 4 (最後一個編目屬性) 呼叫 Remove-FASTSearchMetadataCrawledPropertyMapping,從中移除對應。

參數

-Confirm

這會啟動使用者提示,以確認作業。 如果有設定,就會啟動提示。 如果 Confirm 為 false (-Confirm:$false) ,則不會使用確認提示。

在未指定 Confirm 的情況下,Cmdlet 會在 $ConfirmPreference 殼層變數等於或大於 Cmdlet 的 ConfirmImpact 設定 (HIGH) 時進行提示。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010

-CrawledProperty

已移除對應的編目屬性。 您可以使用 Get-FASTSearchMetadataCrawledProperty,或在 Managed 屬性物件上使用 GetCrawledPropertyMappings () 方法呼叫來擷取物件。

Type:CrawledProperty
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010

-Force

這會覆寫所有使用者提示設定,使系統不需要確認作業。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010

-ManagedProperty

已移除對應的 Managed 屬性物件。 您可以使用 Get-FASTSearchMetadataManagedPropertyCmdlet 來擷取物件。

Type:ManagedProperty
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010

-WhatIf

顯示訊息會描述命令的功效而不執行命令。 如需詳細資訊,請輸入下列命令:get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:FAST Server for SharePoint 2010