Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 1.29 KB

File metadata and controls

45 lines (37 loc) · 1.29 KB

#Set-SPOSearchConfiguration Sets the search configuration ##Syntax

Set-SPOSearchConfiguration -Configuration <String> [-Scope <SearchConfigurationScope>] [-Web <WebPipeBind>]
Set-SPOSearchConfiguration -Path <String> [-Scope <SearchConfigurationScope>] [-Web <WebPipeBind>]

##Parameters

Parameter Type Required Description
Configuration String True Search configuration string
Path String True Path to a search configuration
Scope SearchConfigurationScope False
Web WebPipeBind False The web to apply the command to. Omit this parameter to use the current web.
##Examples

###Example 1

PS:> Set-SPOSearchConfiguration -Configuration $config

Sets the search configuration for the current web

###Example 2

PS:> Set-SPOSearchConfiguration -Configuration $config -Scope Site

Sets the search configuration for the current site collection

###Example 3

PS:> Set-SPOSearchConfiguration -Configuration $config -Scope Subscription

Sets the search configuration for the current tenant

###Example 4

PS:> Set-SPOSearchConfiguration -Path searchconfig.xml -Scope Subscription

Reads the search configuratino from the specified XML file and sets it for the current tenant