In enhanced LWR sites, visitors can search for CMS content published from enhanced CMS workspaces. Visitors can also search for content within the Rich Content Editor and HTML Editor components, as well as within page title metadata. Use the Search Bar and Results Layout components to add the search functionality to your enhanced LWR site.
Required Editions
| Available in: Salesforce Classic and Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, and Developer Editions |
| Applies to: LWR sites |
| User Permissions Needed | |
|---|---|
| To customize an Experience Cloud site: |
|
Visitors can search only indexed content, so after you publish fresh content in your site or in the connected CMS workspace, rebuild the index. In Experience Builder, navigate to Settings | Search, and then click Rebuild Index.
CMS Content Search isn’t available for Government Cloud organizations.
Search results can only be shown on a standard Search page, so to use the Results Layout component, you must first create the search page.
-
In Experience Builder, click the Pages menu on the top toolbar, and then click
New Page at the bottom of the menu.

- Select the Standard Page type.
-
Select the preconfigured Search page and click
Next.

- Enter a name and URL for the page, and then click Create.
- From the Components panel, drag the Search Bar component onto the header section of the page. When you add the component to the header section, CMS content search is available across all site pages.
- To open the properties panel of the Results Layout component, drag the component from the Components panel onto the page, and click the component on the canvas.
-
From the properties panel, make sure the Results Source field
displays the CMS Content option.

- Preview and publish your site.