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
- MVCuserMay 19, 2022Brass ContributorFantastic thank you David. Do you know when it comes to Filters: i created a column that has some choices. I try to use that as a filter but it is not showing me that column. Do you know what thaat might be (the column is a site column with many choices, i wanted to use those choices as filters)
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) 😞