Forum Discussion
conny82
Dec 17, 2020Copper Contributor
Custom search to search pdf files in certain librarys
Hi! I have set up document system with three different document librarys. Togheter they hold about 32000 pdf documents. I have implement the custom search module on my site and created a custom sear...
DaveMehr365
Aug 28, 2025MVP
Hi conny82
I think you've found a solution in the meantime.
With PnP Modern Search WebParts you can create custom search pages with individual queries and layouts. For your case i use this query
{searchTerms} (Path:"https://<TENANT>.sharepoint.com/sites/DocumentStore/StrukturierteDokumente/" OR Path:"https://<TENANT>.sharepoint.com/sites/DocumentStore/Article/") AND FileExtension:pdf
Best, Dave