On my website, I have regular informational content and a shop. Both should be available to search, but I do not want to search everything with one bar and offer two separate lists of content after the search. I also do not want two search bars. I also do not want two separated websites (like a company site and a shop site). The shop will only show up products that are actually on sale, the website also offers information about products out of sale, jobs, blog posts etc.
Usecase: User A wants to buy product B. If using a general search user A would find a lot of articles and job offers related to B next to the product B itself.
Or, as another example: I don't want to find "UX career options" at the company Amazn when searching for books on UX in the Amazn shop.
The only opportunity I can think of right now is a scoped search, i.e. the user has to choose "Website" or "Shop" in a button next to the search bar.
I have the impression that this is not really often used nowadays - is this still state of the art or can you think of a better alternative?