Thank you for posting your question in the Microsoft Q&A forum.
Based on the information you provided, I understand that you are using PnP Modern Search to search within a specific library containing multiple folders. You have two main requirements:
-When the search box is empty, no results should be displayed.
-When a search is performed, results should appear along with filters (refiners) on the left based on your Choice columns.
Here is how you can achieve this configuration based on my test environment:
- Hiding Results When the Search Box is Empty
To ensure the Search Results web part shows nothing until a user types a keyword, you need to modify the Query Template. Please follow these steps:
Go to your site > Click Edit > See all web parts > Add Document library.
Then, in the Edit Search Results settings (for the web part you are configuring), change the Query template to the following format: {?{searchTerms} path:"https://yourtenant.sharepoint.com/sites/yoursite/yourlibrary"}
Then, to configure the connections, you must ensure that the Search Results web part is listening to the Search Box > Go to page Connections in the web part settings > Connect it to the PnP - Search Box as shown in the image below:
In my test environment, this configuration ensures that the results area remains blank initially. If you want to clear the search box and return to the empty state, you can simply click the "X" in the search box, and the results will disappear as shown below:
Displaying Filters (Refiners) from Columns
To have your Choice columns appear as filters on the left after searching, you need to use the PnP - Search Filters web part. Please refer to the official documentation here:
https://microsoft-search.github.io/pnp-modern-search/scenarios/page-with-filters/
https://microsoft-search.github.io/pnp-modern-search/usage/search-filters/
Let me know if you need help mapping those properties!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.