Forum Discussion

irshad313's avatar
irshad313
Copper Contributor
Feb 13, 2025
Solved

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
  • DaveMehr365's avatar
    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

Resources