Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.4 KB

SetPnPSearchConfiguration.md

File metadata and controls

49 lines (41 loc) · 1.4 KB

Set-PnPSearchConfiguration

Sets the search configuration

Syntax

Set-PnPSearchConfiguration -Configuration <String>
                           [-Scope <SearchConfigurationScope>]
                           [-Web <WebPipeBind>]
Set-PnPSearchConfiguration -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-PnPSearchConfiguration -Configuration $config

Sets the search configuration for the current web

Example 2

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

Sets the search configuration for the current site collection

Example 3

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

Sets the search configuration for the current tenant

Example 4

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

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