I have a page (SharePoint 2013 - Foundation) with a search Results web part. In that web part I have added a filter to limit the results to the specific site (and it's children). So my Query text is:
This works.. except for one thing. I'm guessing here but I think the "Site.URL" is returning the site that contains the search results page and not the site that actually started the search!
What I'm trying to do is mimic the default search behavior where a search only contains results from the current site down. So for example
If I'm on mySite and search, I should get everything from mySite + mySubSite. However if I am in the mySubSite when I search, I should only get results from mySubSite and NOT the parent mySite.
So why am I getting any of these results... should get nothing based on the PATH filter