Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Set-SPEnterpriseSearchQuerySpellingCorrection

SharePoint 2013

Published: July 16, 2012

Applies to:  SharePoint Server 2013 Enterprise | SharePoint Server 2013 Standard 

Sets the operation status of the Query Spelling Corrections (QSC) component.

Set-SPEnterpriseSearchQuerySpellingCorrection [[-Identity] <QuerySpellingCorrectionPipeBind>] -SearchApplication <SearchServiceApplicationPipeBind> [-AssignmentCollection <SPAssignmentCollection>] [-ContentAlignmentEnabled <Nullable>] [-DiacriticsInSuggestionsEnabled <Nullable>] [-MaxDictionarySize <Nullable>] [-MaxProcessingTime <Nullable>] [-SecurityTrimmingEnabled <Nullable>] [-SpellingDictionary <Nullable>] [-TermFrequencyThreshold <Nullable>]

Parameters

Parameter Required Type Description

Identity

Optional

Microsoft.Office.Server.Search.Cmdlet.QuerySpellingCorrectionPipeBind

Specifies an object that represents the current status for the query spelling correction.

SearchApplication

Required

Microsoft.Office.Server.Search.Cmdlet.SearchServiceApplicationPipeBind

Specifies the search service application that contains the QSC components.

AssignmentCollection

Optional

Microsoft.SharePoint.PowerShell.SPAssignmentCollection

Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.

note Note:

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

ContentAlignmentEnabled

Optional

System.Nullable

A Boolean value to enable or deactivate the content alignment process.

DiacriticsInSuggestionsEnabled

Optional

System.Nullable

A switch to enable or disable spelling suggestions that contain diacritics (for example, German umlaut). The default setting is true. 

MaxDictionarySize

Optional

System.Nullable

Specifies the maximal number of terms in a content-aligned spelling dictionary. In a multi-tenant environment, this number is valid per tenant.

MaxProcessingTime

Optional

System.Nullable

Specifies the maximum runtime for compiling a content-aligned spelling dictionary. The default value is 6 hours.

SecurityTrimmingEnabled

Optional

System.Nullable

A Boolean value to enable or disable the security check for spelling suggestions. If enabled, only spelling suggestions that deliver at least one document for the current user are shown.

SpellingDictionary

Optional

System.Nullable

Specifies the dictionary to be used for query spelling correction. The two available values are dynamic and static. When value is set to dynamic, the query spelling correction uses the content-aligned dictionary. When value is set to static, the query spelling correction uses the out of the box static spelling dictionaries.

TermFrequencyThreshold

Optional

System.Nullable

Specifies the minimum number of documents that must contain the most frequently used term in the document collection for the content-alignment process to be executed. In a multi-tenant environment, this number is valid per tenant.

Detailed Description

This cmdlet provides access to the configuration options for the QSC component. The two most prominent configuration options are the switch to enable the content-alignment process, and the selection of dictionaries to be used for query spelling correction, that is the set of fixed dictionaries per language or the dynamic dictionary that is being produced by the content alignment process.

Input Types

Return Types

------------------EXAMPLE-----------------

$searchApp = Get-SPEnterpriseSearchServiceApplication

Set-SpEnterpriseSEarchQuerySpellingCorrection -SearchApplication $searchApp -SpellingDictionary dynamic

This example sets the dictionary named dynamic to be used for query spelling correction for the default search service application.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.