Remove-FASTSearchMetadataCrawledPropertyMapping

移除編目屬性與受管理屬性的對應。

語法

Default (預設值)

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

Description

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

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

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

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

範例

範例 1 (FAST Server for SharePoint 2010)

$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” 與受管理屬性 “title” 的對應。

此範例會呼叫 GetCrawledPropertyMappings () 由受管理屬性公開的方法呼叫,但您也可以使用 Get-FASTSearchMetadataCrawledProperty 來尋找已編目的屬性。 GetCrawledPropertyMappings () 的傳回值是編目屬性的陣列,其中最後一個是 “sitemap.title” 編目屬性對應。 陣列索引 4 (最後一個編目屬性,) 透過呼叫 Remove-FASTSearchMetadataCrawledPropertyMapping 從中移除對應。

參數

-Confirm

適用對象:FAST Server for SharePoint 2010

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

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

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:CF

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-CrawledProperty

適用對象:FAST Server for SharePoint 2010

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

參數屬性

類型:CrawledProperty
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Force

適用對象:FAST Server for SharePoint 2010

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

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ManagedProperty

適用對象:FAST Server for SharePoint 2010

已移除對應的受管理屬性物件。 您可以使用 Get-FASTSearchMetadataManagedPropertycmdlet 來擷取物件。

參數屬性

類型:ManagedProperty
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-WhatIf

適用對象:FAST Server for SharePoint 2010

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

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:WI

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。