共用方式為


Remove-FASTSearchMetadataFullTextIndex

 

適用版本: SharePoint Server 2010

上次修改主題的時間: 2016-11-29

這會從 Microsoft FAST Search Server 2010 for SharePoint 系統移除全文檢索索引。

Syntax

Remove-FASTSearchMetadataFullTextIndex -FullTextIndex <FullTextIndex> [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

Remove-FASTSearchMetadataFullTextIndex -Name <String> [-Confirm [<SwitchParameter>]] [-Force <SwitchParameter>] [-WhatIf [<SwitchParameter>]]

詳細描述

這個 Cmdlet 會移除全文檢索索引。索引的內容會移除,且無法再搜尋。對應至全文檢索索引的 Managed 屬性仍可使用,而且可以對應至其他或新的全文檢索索引。

此 Cmdlet 包含多個參數集。您只可以使用一個參數集中的參數,而不可合併使用不同參數集中的參數。在執行簡單的作業時,使用 FullTextIndexName 參數並無差異。唯一的差異是使用 Name 參數時,每次皆會查閱全文檢索索引,而使用 FullTextIndex 參數時,則只會使用已在參考的物件。但執行的作業若涉及大型物件集合 (例如重複所有的類別),避免使用名稱進行額外查閱,在效率上會小有助益。如需如何使用參數集的詳細資訊,請參閱 Cmdlet 參數集(可能為英文網頁)

注意

請勿刪除且重新建立「同名」但使用不同設定的全文檢索索引。重新建立後的全文檢索索引一開始會先包含所有之前在此全文檢索索引中已編製索引的項目,然後加以刪除。而不再屬於全文檢索索引的項目會等到更新或刪除後,才會出現在查詢結果中。

Parameters

參數 必要 類型 描述

FullTextIndex

必要

Microsoft.SharePoint.Search.Extended.Administration.Schema.FullTextIndex

代表要移除之全文檢索索引的全文檢索索引物件。

Name

必要

System.String

要移除之全文檢索索引的名稱。

Confirm

選用

System.Management.Automation.SwitchParameter

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

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

Force

選用

System.Management.Automation.SwitchParameter

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

WhatIf

選用

System.Management.Automation.SwitchParameter

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

輸入類型

傳回類型

Example

---------------範例 1-----------------

Remove-FASTSearchMetadataFullTextIndex -name secondarycontent

此範例會從 FAST Search Server 2010 for SharePoint 系統移除名為 “secondarycontent” 的全文檢索索引。只要未使用 Force 參數,或者 $ConfirmPreference 環境設定為高於 HIGH 的值,Cmdlet 就會要求確認。

---------------範例 2-----------------

$index=Get-FASTSearchMetadataFullTextIndex -name secondarycontent
Remove-FASTSearchMetadataFullTextIndex -FullTextIndex $index -force

此範例會移除 $index 變數所代表的全文檢索索引。由於指定了 Force 參數,因此不會使用索引移除確認。

See Also

Reference

New-FASTSearchMetadataFullTextIndex
Set-FASTSearchMetadataFullTextIndex
Get-FASTSearchMetadataFullTextIndex