My organization built an intranet in the root site of the root site collection. Currently, using the search function in the site pulls all results from our entire SharePoint environment. We'd like to limit search results to only the contents of that site, blocking out results from any sites below the root site collection. I understand why it does this, since all SharePoint items include the root address in their path.
Research has led me to believe query rules are the answer, and have tried this query rule at the site level to exclude results from anything below the root site collection:
-Path:https://[orgname].sharepoint.com/sites*
While the test of the query appears to behave appropriately, live search does not; all results still display. Is there a quirk to query rules at the site, or could this have something to do with the fact that we're running search using the modern/non-classic experience?