After deploying PnP Modern Search to your tenant, it’s time to create the first PnP search page.
PnP search pages can be added to any modern site, so it’s your decision where to do this. My recommendation is always try this out on a “playground” site first, before deploying to production.
The first step is to create an empty page, where you’ll add the PnP web parts. Go to any of your modern sites, and create a new page:
The next step is to add the PnP web parts to your page. The package, that you’ve deployed, adds the following web parts available on your modern pages:
You can get to these web parts when search for “PnP” or “search” in the web part gallery:
On a very simple search page, we have at least two web parts: a search box and a search results web part.
You simply add a Search Box to the page by choosing “PnP Search Box” web part. At this point, you don’t have to do any further configuration.
The next step is to add a “PnP Search Results” web part to the page.
Once the web part is added to the page, you have to connect it to the Search Box web part, to receive the query from there. You can do this by following these steps:
Once done, save the page and enjoy your very first search page!
This article was originally posted on Search Explained Blog.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.