Forum Discussion
Mike Jansen
Jan 10, 2017Iron Contributor
Sharepoint search box web part - results only current site
I thought this would be easy but I can't find is out. On a site I use the (standard) search box web part. When I use this it returns results from the whole site collection. I do not want that. I onl...
Brent Ellis
Jan 10, 2017Silver Contributor
Try adding this to your Change Query option under the properties of the the Search Results Web Part
Path:{Site.URL}
Path:{Site.URL}
Mike Jansen
Jan 10, 2017Iron Contributor
Brent Ellis wrote:
Try adding this to your Change Query option under the properties of the the Search Results Web Part
Path:{Site.URL}
I tried that but it takes the url of the page where the search results page is located (the root in my case) not the page where the query was issued.