Forum Discussion
Ghada Mehrez
May 05, 2025Copper Contributor
pnp Search-Ristrect data source to a specific SharePoint Library
I need to get a data source from a specific SharePoint Library I changed the search Query template to {searchTerms} Path: https://*********.sharepoint.com/sites/AutomationDev/Automation%20Dev/Softw...
DaveMehr365
May 09, 2025MVP
you can use this query, with list or library:
{searchTerms} Path: https://*********.sharepoint.com/sites/AutomationDev/Automation%20Dev/Software/
Look at this blog for more help: https://www.mehr365.com/gezielt-inhalt-suchen-mit-der-eigenschaft-path/
You can find more informattions about PnP Modern Search WebParts on this site: https://microsoft-search.github.io/pnp-modern-search/scenarios/
Regards, Dave