Forum Discussion
enotgl480
Aug 26, 2024Copper Contributor
Modifying Sharepoint online modern search bar on site level to return results from library
Hi all, I'm working on trying to modify search results on site level to only return files from a specific library. The original Documents library setup had obsolete, initial, approved, and publis...
DaveMehr365
Aug 26, 2024MVP
Hello enotgl480
that's correct, when the search on a library are disabled, you can't find any information in every search.
You can move the documents in a folder with no permissions for users, or you can use the PnP Modern Search WebParts https://microsoft-search.github.io/pnp-modern-search/ to configure a custom search page only with results you want e.g. filter properties, content types or others.
Best, Dave