I'm in the process of implementing a search feature on my website and am wondering the best practises to do with the scope of a search. Currently, when viewing a certain section of the website search will be performed within that section. Meanwhile, searches started in other places (e.g. the homepage) will be global wide-scope searches. The issue is that the search bar is always in the same place (next to the logo) and I'm unsure whether it's confusing or not to have the search specifically scoped to the section the user is viewing.
The scope-limiting search certainly offers more in functionality, but I don't want to confuse users. Any advice would be appreciated.