Forum Discussion
amyharkus
Jul 08, 2024Copper Contributor
PnP Modern Search v4 query text
i've installed the PnP modern search but am having trouble with the SharePoint Search Query text I'd like it to search only within two document libraries I have on the page, I have tried using t...
DaveMehr365
Aug 20, 2024MVP
Hello amyharkus
you can use this query and settings for results from two libraries:
{searchTerms} Path:"https://<TENANT>.sharepoint.com/sites/DocumentStore/StrukturierteDokumente/" OR Path:"https://<TENANT>.sharepoint.com/sites/DocumentStore/Article/"
You can connect the results webpart with your search box.
Best, Dave