How to Add a Search Component in Microsoft Power Pages

Add a Search Component

The Search Component allows users to quickly find content across your Microsoft Power Pages website. By adding a search experience to your portal, users can easily discover relevant pages, information, and resources without manually navigating through the site.

Note: The Search Component is currently a preview feature with limited functionality and is not recommended for production environments. It only works on websites where Generative AI Search has been enabled.

How to Add a Search Component

  1. Open Power Pages Design Studio.
  2. Select the page where you want to add the search component.
  3. Choose the section where the search bar should appear.
  4. Hover over an editable area on the canvas.
  5. Select the Search component from the component panel.
  6. Configure the search properties as required.
  7. Save and publish your changes.

Search Bar Properties

Property Description
Show Search Result Inline Display search results on the current page or redirect users to a dedicated search results page.
Placeholder Text Text displayed inside the search box before users start typing.

Search Summary

The Search Summary section displays an AI-generated summary of content retrieved from your website. This helps users quickly understand the most relevant information without opening multiple pages.

Property Description
Heading Text Text displayed above the AI-generated search summary.

Add a Search Results Page

Power Pages includes a default search results page. However, you can create a custom search results page to provide a tailored search experience.

  1. Open Design Studio.
  2. Select + Page.
  3. Choose Other Ways to Add Page.
  4. Enter a page name.
  5. Select Search Standard Page Layout.
  6. Select Add.
Tip: Only one search results page can exist on a Power Pages website. Creating a new search results page replaces the existing one.

Restore or Reassign a Search Results Page

If you need to restore or change the search results page, use the Site Marker configuration in Portal Management.

  1. Open the Portal Management app.
  2. Navigate to Site Markers.
  3. Select the Search site marker.
  4. Update the page associated with the search results page.
  5. Save your changes.

Known Issues

When creating a new search results page using the Search Standard Page Layout, the old search control may briefly appear before the page fully loads.

Known Issue Fix: Remove the legacy search control code snippet from the Header Web Template to prevent the old search component from briefly appearing during page load.

Benefits of Using Search Components

Best Practices

Summary

The Search Component in Microsoft Power Pages enables users to discover content quickly and efficiently. With support for AI-generated summaries, customizable search results pages, and intelligent content retrieval, it enhances navigation and improves the overall user experience across your portal.