Muokkaa

Jaa


Switch from an Enterprise Search Center to Basic in SharePoint

The Basic Search Center is a classic search experience. To offer your users a richer search experience, you can do one of the two things:

If you're currently using the Enterprise Search Center, you can easily replace (swap) it with the Basic Search Center if needed. The swap results in your users seeing the classic search experience in their default search home page and default search results page. You can use the Invoke-SPOSiteSwap PowerShell cmdlet to swap.

How to use Invoke-SPOSiteSwap to swap your Search Center sites

  1. Download the latest SharePoint Online Management Shell.

    Note

    If you installed a previous version of the SharePoint Online Management Shell, go to Add or remove programs and uninstall "SharePoint Online Management Shell."

  2. Connect to SharePoint as a SharePoint Administrator or above in Microsoft 365. To learn how, see Getting started with SharePoint Online Management Shell.

  3. Run the Invoke-SPOSiteSwap cmdlet.

Invoke-SPOSiteSwap  
  -SourceUrl <string>
  -TargetUrl <string>
  -ArchiveUrl <string>
Parameter Description
-SourceUrl The site you want to promote.
-TargetUrl The site you want to replace.
-ArchiveUrl URL that the target site is archived to.

Here's an example of how to use these parameters when swapping an existing Enterprise Search Center to Basic:

  • For your -SourceUrl, you need the URL of your Basic Search Center site. The site must exist before running the cmdlet. For our example, we use <spam><spam>https://contoso.sharepoint.com/sites/SiteSearch<spam><spam>.

    You can create a Basic Search Center site from an Enterprise site template.

  • For your -TargetUrl, you need the URL of your Enterprise Search Center site that you want to replace. For our example, we use <spam><spam>https://contoso.sharepoint.com/search<spam><spam>.

  • For your -ArchiveUrl, use a Url that doesn't currently exist at the location. Your Enterprise Search Center site is archived to this site location. For our example, we use <spam><spam>https://contoso.sharepoint.com/sites/ArchivedEntSearch<spam><spam>.

Here's how to use the examples in the Invoke-SPOSiteSwap cmdlet:

Invoke-SPOSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/SearchSite -TargetUrl https://contoso.sharepoint.com/search -ArchiveUrl https://contoso.sharepoint.com/sites/ArchivedEntSearch

Successfully running the cmdlet would result in:

  • Basic Search is the default Search Center experience. When users go to <spam><spam>https://contoso.sharepoint.com/search<spam><spam>, they're now using the Basic Search Center.
  • The Enterprise Search Center site is no longer available as the default Search Center experience.

See also

Manage the Search Center in SharePoint