Set-SPEnterpriseSearchQuerySpellingCorrection
設定查詢拼字校正 (Query Spelling Corrections,QSC) 元件的作業狀態。
Syntax
Set-SPEnterpriseSearchQuerySpellingCorrection
[-AssignmentCollection <SPAssignmentCollection>]
[-ContentAlignmentEnabled <Boolean>]
[-DiacriticsInSuggestionsEnabled <Boolean>]
[-Identity <QuerySpellingCorrectionPipeBind>]
[-MaxDictionarySize <Int32>]
[-MaxProcessingTime <TimeSpan>]
-SearchApplication <SearchServiceApplicationPipeBind>
[-SecurityTrimmingEnabled <Boolean>]
[-SpellingDictionary <SpellingDictionaryType>]
[-TermFrequencyThreshold <Int32>]
[<CommonParameters>]
Description
此 Cmdlet 提供 QSC 元件之設定選項的存取權。 兩個最顯著的組態選項是可啟用內容對齊程式的參數,以及要用於查詢拼字校正的字典選取,也就是每種語言的固定字典集合,或是內容對齊程式所產生的動態字典。
如需適用於 SharePoint 產品的 Windows PowerShell 權限及最新資訊,請參閱線上文件 SharePoint Server Cmdlet。
範例
------------------範例------------------
$ssa = Get-SPEnterpriseSearchServiceApplication
Set-SpEnterpriseSEarchQuerySpellingCorrection -SearchApplication $ssa -SpellingDictionary dynamic
此範例會設定預設 Search Service 應用程式的查詢拼字校正所要使用的字典 dynamic。
參數
-AssignmentCollection
管理物件以適當處置它們。 使用 SPWeb 或 SPSite 等物件可能會耗用大量的記憶體,因此在 Windows PowerShell 指令碼中使用這些物件時,必須適當地管理記憶體。 您可以使用 SPAssignment 物件將物件指派給變數,並在不需要時處置這些物件,以釋放記憶體。 使用 SPWeb、SPSite 或 SPSiteAdministration 物件時,若未使用指派集合或 Global 參數,將會自動處置這些物件。
使用 Global 參數時,所有物件會包含在全域儲存區內。
如果不立即使用物件,或使用 Stop-SPAssignment
命令加以捨棄,則可能會有記憶體不足的狀況發生。
Type: | SPAssignmentCollection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-ContentAlignmentEnabled
布林值,可啟用或停用內容對齊程序。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-DiacriticsInSuggestionsEnabled
可啟用或停用包含變音符號 (的拼字建議參數,例如德文 umlaut umlaut) 。 預設設定為 true。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-Identity
指定表示查詢拼字校正之目前狀態的物件。
Type: | QuerySpellingCorrectionPipeBind |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxDictionarySize
指定內容對齊的拼字檢查字典中的字詞數目上限。 在多承租人的環境中,會根據承租人設定有效的數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-MaxProcessingTime
指定編譯內容對齊之拼字檢查字典的最大執行階段。 預設值為 6 小時。
Type: | TimeSpan |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-SearchApplication
指定包含 QSC 元件的 Search Service 應用程式。
Type: | SearchServiceApplicationPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-SecurityTrimmingEnabled
布林值,用來啟用或停用拼字建議的安全性檢查。 若啟用,只會顯示至少提供一份文件給目前使用者的拼字建議。
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-SpellingDictionary
指定用於查詢拼字校正的字典。 兩個可用的值分別為 dynamic 和 static。 當值設為 dynamic 時,查詢拼字校正使用內容對齊的字典。 當值設為 static 時,查詢拼字校正使用現成的靜態拼字檢查字典。
Type: | SpellingDictionaryType |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |
-TermFrequencyThreshold
指定針對要執行之內容對齊的程序,必須包含文件集合中最常用之字詞的文件數目下限。 在多承租人的環境中,會根據承租人設定有效的數目。
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Server 2013, SharePoint Server 2016, SharePoint Server 2019 |