Building a Search Query Modifier
Git branch
This section uses the https://github.com/PacktPublishing/Mastering-SharePoint-Development-with-the-SharePoint-Framework-/tree/chapter13/build-a-seach-query-modifier Git branch from the repository.
For this chapter, we will create a Search Query Modifier as per the details mentioned in the Requirement 6: Searching for a product from a site section in Chapter 4, Packt Product Management Solution: A Practical Use Case, which will allow users to search a product(s) by the product reference value using the site search box at the top of the page.
Prerequisites
Before creating a Search Query Modifier, we need to make a few updates to the SharePoint site.
Page for search results
We need to create a page that will be used to show the search results. By default, when a user enters a query in the top search box of a SharePoint site, the user is redirected to the out-of-the-box search results page, which is the same for all the sites...