#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 $configSets the search configuration for the current web
###Example 2
PS:> Set-SPOSearchConfiguration -Configuration $config -Scope SiteSets the search configuration for the current site collection
###Example 3
PS:> Set-SPOSearchConfiguration -Configuration $config -Scope SubscriptionSets the search configuration for the current tenant
###Example 4
PS:> Set-SPOSearchConfiguration -Path searchconfig.xml -Scope SubscriptionReads the search configuratino from the specified XML file and sets it for the current tenant