Forum Discussion
irshad313
Feb 13, 2025Copper Contributor
Shearpoint PnP Modern Search
In shearpoint PnP modern search when I put any text in search box I want result to appear from only one site how should I customize this change in my current solution to get my desired output
- Feb 13, 2025
Hi irshad313
you can use the Path property in your query template, as example only from the site "MSTEvents":
{SearchTerms} Path:“https://mehr365.sharepoint.com/sites/MSTEvents/“
You can see more details in my blog post: https://www.mehr365.com/gezielt-inhalt-suchen-mit-der-eigenschaft-path/
Best, Dave
DaveMehr365
Feb 13, 2025MVP
Hi irshad313
you can use the Path property in your query template, as example only from the site "MSTEvents":
{SearchTerms} Path:“https://mehr365.sharepoint.com/sites/MSTEvents/“
You can see more details in my blog post: https://www.mehr365.com/gezielt-inhalt-suchen-mit-der-eigenschaft-path/
Best, Dave