Forum Discussion
Limit SharePoint Search to current Site
- May 19, 2022
Hello MVCuser
when you use the PnP Modern Search Web Parts https://microsoft-search.github.io/pnp-modern-search/ you can define the Path:"" into your query.
Like:
Path:"https://TENANT.sharepoint.com/sites/MSTEvents/"
This query show's only results from the site MSFEvents.
Hope this helps.
Regards, Dave
Hello MVCuser
when you use the PnP Modern Search Web Parts https://microsoft-search.github.io/pnp-modern-search/ you can define the Path:"" into your query.
Like:
Path:"https://TENANT.sharepoint.com/sites/MSTEvents/"
This query show's only results from the site MSFEvents.
Hope this helps.
Regards, Dave
Thanks
- DaveMehr365May 19, 2022MVP
Hello MVCuser
yes, i think you need to configure managed properties:
https://microsoft-search.github.io/pnp-modern-search/scenarios/set-up-managed-properties/
Please attention, this can takes several hours.
And then you can configure your filters:
https://microsoft-search.github.io/pnp-modern-search/scenarios/page-with-filters/
Happy search 😉
Regards, Dave
- MVCuserMay 19, 2022Brass ContributorHi, thank you for your quick reply.
yes, i've seen that doc before and followed the steps (Site Column, content type) but yet i don't get to see the Managed Property when searching for it (and it's been a few days already) 😞- DaveMehr365May 19, 2022MVP
Hello MVCuser
you're welcome 😉
Have you add content to your columns? Map your properties to default RefinableStringXX .
So as last you can try to reindex your site or library:
https://docs.microsoft.com/en-us/sharepoint/crawl-site-content
Regards, Dave